Skip to content

Commit c0b8975

Browse files
committed
Fix slot
1 parent f2a74db commit c0b8975

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contracts/src/ERC721EthscriptionsSequentialEnumerableUpgradeable.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ abstract contract ERC721EthscriptionsSequentialEnumerableUpgradeable is ERC721Et
2020
uint256 _mintCount;
2121
}
2222

23+
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ERC721SequentialEnumerableStorageLocation")) - 1)) & ~bytes32(uint256(0xff))
24+
bytes32 private constant ERC721SequentialEnumerableStorageLocation = 0x154e8d00bf5f00755eebdfa0d432d05cad242742a46a00bbdb15798f33342700;
25+
2326
function _getERC721SequentialEnumerableStorage()
2427
private
2528
pure
2629
returns (ERC721SequentialEnumerableStorage storage $)
2730
{
28-
bytes32 slot = keccak256(abi.encode("ethscriptions.storage.ERC721SequentialEnumerable"));
2931
assembly {
30-
$.slot := slot
32+
$.slot := ERC721SequentialEnumerableStorageLocation
3133
}
3234
}
3335

0 commit comments

Comments
 (0)