Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/SpokePool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ abstract contract SpokePool is SpokePoolInterface, Testable, Lockable, MultiCall
// Note: we use encode instead of encodePacked because it is more secure, more in the "warning" section
// here: https://docs.soliditylang.org/en/v0.8.11/abi-spec.html#non-standard-packed-mode
bytes32 expectedDepositorMessageHash = keccak256(
abi.encode("ACROSS-V2-FEE-1.0", newRelayerFeePct, depositId, originChainId)
abi.encode("ACROSS-V2-FEE-2.0", newRelayerFeePct, depositId, originChainId)
);

// Check the hash corresponding to the https://eth.wiki/json-rpc/API#eth_sign[eth_sign]
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/SpokePool.Fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export async function modifyRelayHelper(
const messageHash = ethers.utils.keccak256(
defaultAbiCoder.encode(
["string", "uint64", "uint32", "uint32"],
["ACROSS-V2-FEE-1.0", modifiedRelayerFeePct, depositId, originChainId]
["ACROSS-V2-FEE-2.0", modifiedRelayerFeePct, depositId, originChainId]
)
);
const signature = await depositor.signMessage(ethers.utils.arrayify(messageHash));
Expand Down