mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-22 11:48:19 +00:00
Update eip-2535.md (#3729)
This commit is contained in:
parent
0c26412c0b
commit
57518a242e
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user