Skip to content

Commit a8fbfb8

Browse files
authored
chore: Restore v2 functions for relayer test (#470)
The relayer repository requires these functions to be available for use in test, effectively as a protection against regressions. In the long run this will be a pain to retain, but for now it's necessary to permit onchain v2 functions to be removed.
1 parent 0b88f4f commit a8fbfb8

File tree

7 files changed

+738
-5
lines changed

7 files changed

+738
-5
lines changed

contracts/test/MerkleLibTest.sol

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ pragma solidity ^0.8.0;
44
import "../MerkleLib.sol";
55
import "../interfaces/HubPoolInterface.sol";
66
import "../interfaces/SpokePoolInterface.sol";
7+
import "./interfaces/MockV2SpokePoolInterface.sol";
8+
import "./V2MerkleLib.sol";
79

810
/**
911
* @notice Contract to test the MerkleLib.
@@ -29,6 +31,14 @@ contract MerkleLibTest {
2931
return MerkleLib.verifyRelayerRefund(root, refund, proof);
3032
}
3133

34+
function verifySlowRelayFulfillment(
35+
bytes32 root,
36+
MockV2SpokePoolInterface.SlowFill memory slowFill,
37+
bytes32[] memory proof
38+
) public pure returns (bool) {
39+
return V2MerkleLib.verifySlowRelayFulfillment(root, slowFill, proof);
40+
}
41+
3242
function verifyV3SlowRelayFulfillment(
3343
bytes32 root,
3444
V3SpokePoolInterface.V3SlowFill memory slowFill,

0 commit comments

Comments
 (0)