Skip to content

Commit

Permalink
misc: Updated typehash constant to compute keccak hash instead of raw…
Browse files Browse the repository at this point in the history
… byte string.
  • Loading branch information
Zer0dot committed Apr 7, 2022
1 parent 7ac139e commit 5a052dd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contracts/core/FollowNFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ contract FollowNFT is LensNFTBase, IFollowNFT {
address public immutable HUB;

bytes32 internal constant DELEGATE_BY_SIG_TYPEHASH =
0xb8f190a57772800093f4e2b186099eb4f1df0ed7f5e2791e89a4a07678e0aeff;
// keccak256(
// 'DelegateBySig(address delegator,address delegatee,uint256 nonce,uint256 deadline)'
// );
keccak256(
'DelegateBySig(address delegator,address delegatee,uint256 nonce,uint256 deadline)'
);

mapping(address => mapping(uint256 => Snapshot)) internal _snapshots;
mapping(address => address) internal _delegates;
Expand Down

0 comments on commit 5a052dd

Please sign in to comment.