Skip to content

Commit

Permalink
renames to TOKEN_CLAIM_HASH_STRUCT
Browse files Browse the repository at this point in the history
  • Loading branch information
encody committed Aug 10, 2021
1 parent 9cac400 commit 79663a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Web3T3Certificate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";

contract Web3T3Certificate is ERC721, ERC721Enumerable, AccessControl, EIP712 {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
bytes32 private constant TOKEN_CLAIM_TYPE_HASH =
bytes32 private constant TOKEN_CLAIM_HASH_STRUCT =
keccak256(
"TokenClaim(uint256 tokenId,string tokenUri,uint256 expires)"
);
Expand Down Expand Up @@ -72,7 +72,7 @@ contract Web3T3Certificate is ERC721, ERC721Enumerable, AccessControl, EIP712 {
bytes32 digest = _hashTypedDataV4(
keccak256(
abi.encode(
TOKEN_CLAIM_TYPE_HASH,
TOKEN_CLAIM_HASH_STRUCT,
tokenId,
keccak256(abi.encodePacked(tokenUri)),
expires
Expand Down

0 comments on commit 79663a0

Please sign in to comment.