Update eip-2535.md (#3729)

This commit is contained in:
Nick Mudge 2021-08-13 23:17:28 -04:00 committed by GitHub
parent 0c26412c0b
commit 57518a242e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ library LibA {
// Specifies a random position in contract storage
// This can be done with a kaccak256 hash of a unique string as is
// done here or other schemes can be used such as this:
// bytes32 storagePosition = keccak256(abi.encodePacked(ERC1155.interfaceId, ERC1155.name, address(this));
// bytes32 storagePosition = keccak256(abi.encodePacked(ERC1155.interfaceId, ERC1155.name, address(this)));
bytes32 storagePosition = keccak256("diamond.storage.LibA");
// Set the position of our struct in contract storage
assembly {ds.slot := storagePosition}