From 479b3cf823a0cde42aaa52d02e470016becb1f77 Mon Sep 17 00:00:00 2001 From: Kristen Pire Date: Tue, 26 Mar 2024 12:41:26 +0100 Subject: [PATCH] feat(Token): replacing the keccak call in favor of the constant PERMIT_TYPEHASH --- src/Token.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Token.sol b/src/Token.sol index a148834..8272a0d 100644 --- a/src/Token.sol +++ b/src/Token.sol @@ -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,