Skip to content

Commit

Permalink
fix: test helper sign with data property
Browse files Browse the repository at this point in the history
  • Loading branch information
pikonha committed Dec 9, 2024
1 parent 53d8660 commit 6297f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion packages/contracts/test/L1Resolver.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ contract L1ResolverTest is Test, ENSHelper {
}

function test_GetDeferralHandlerUnsupportedFunction() public {
bytes memory name = "test.eth";
bytes memory data = abi.encodeWithSelector(
bytes4(keccak256("unsupportedFunction()")), bytes32(0)
);
Expand Down
4 changes: 2 additions & 2 deletions packages/gateway/test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function signData({
verifyingContract: sender,
}
const message: MessageData = {
callData: toFunctionHash(func),
data: toFunctionHash(func),
sender,
expirationTimestamp: 9999999n,
}
Expand All @@ -39,7 +39,7 @@ export async function signData({
message,
types: {
Message: [
{ name: 'callData', type: 'bytes' },
{ name: 'data', type: 'bytes' },
{ name: 'sender', type: 'address' },
{ name: 'expirationTimestamp', type: 'uint256' },
],
Expand Down

0 comments on commit 6297f60

Please sign in to comment.