Skip to content

Commit

Permalink
Change test paymaster contract
Browse files Browse the repository at this point in the history
  • Loading branch information
b1m0n committed Apr 9, 2024
1 parent e071b0f commit 4486d9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/eip712/TestPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ contract TestPaymaster is IPaymaster, EIP712 {
bytes memory _authenticationSignature,

Check warning on line 33 in contracts/eip712/TestPaymaster.sol

View workflow job for this annotation

GitHub Actions / Lint sources (18.16.1)

Variable "_authenticationSignature" is unused
Transaction calldata _transaction

Check warning on line 34 in contracts/eip712/TestPaymaster.sol

View workflow job for this annotation

GitHub Actions / Lint sources (18.16.1)

Variable "_transaction" is unused
) external payable returns (bytes4 magic, bytes memory context) {
address recoverAddress = ECDSA.recover(signDataMessage(_suggestedSignedHash), _authenticationSignature);
require(recoverAddress == owner, "Paymaster: Unauthorized signature");
if (_suggestedSignedHash == 0x0) {
return (0x00000000, context);
}
return (PAYMASTER_VALIDATION_SUCCESS_MAGIC, context);
}

Expand Down

0 comments on commit 4486d9e

Please sign in to comment.