Skip to content

Commit

Permalink
feat(Token): replacing the keccak call in favor of the constant PERMI…
Browse files Browse the repository at this point in the history
…T_TYPEHASH
  • Loading branch information
KristenPire committed Mar 26, 2024
1 parent 3a0b03f commit 479b3cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ contract Token is
_domainSeparatorV4(),
keccak256(
abi.encode(
keccak256(
"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
),
PERMIT_TYPEHASH,
owner,
spender,
value,
Expand Down

0 comments on commit 479b3cf

Please sign in to comment.