diff --git a/contracts/src/evm/storage/EVMStorage.sol b/contracts/src/evm/storage/EVMStorage.sol index 04558f861..78b254b6b 100644 --- a/contracts/src/evm/storage/EVMStorage.sol +++ b/contracts/src/evm/storage/EVMStorage.sol @@ -428,7 +428,7 @@ contract EVMStorageDynamicArray { } contract EVMStorageMapping { - // slot of value = keccack256(key, slot where mapping is declared) + // slot of value = keccak256(key, slot where mapping is declared) mapping(address => uint256) public map; address public constant ADDR_1 = address(1); @@ -453,7 +453,7 @@ contract EVMStorageMapping { contract EVMStorageNestedMapping { // key0 => key1 => val - // slot of value = keccak256(key1, keccack256(key0, slot where nested mapping is declared)) + // slot of value = keccak256(key1, keccak256(key0, slot where nested mapping is declared)) mapping(address => mapping(address => uint256)) public map; address public constant ADDR_1 = address(1); diff --git a/src/pages/evm/storage/EVMStorage.sol b/src/pages/evm/storage/EVMStorage.sol index 04558f861..78b254b6b 100644 --- a/src/pages/evm/storage/EVMStorage.sol +++ b/src/pages/evm/storage/EVMStorage.sol @@ -428,7 +428,7 @@ contract EVMStorageDynamicArray { } contract EVMStorageMapping { - // slot of value = keccack256(key, slot where mapping is declared) + // slot of value = keccak256(key, slot where mapping is declared) mapping(address => uint256) public map; address public constant ADDR_1 = address(1); @@ -453,7 +453,7 @@ contract EVMStorageMapping { contract EVMStorageNestedMapping { // key0 => key1 => val - // slot of value = keccak256(key1, keccack256(key0, slot where nested mapping is declared)) + // slot of value = keccak256(key1, keccak256(key0, slot where nested mapping is declared)) mapping(address => mapping(address => uint256)) public map; address public constant ADDR_1 = address(1); diff --git a/src/pages/evm/storage/index.html.ts b/src/pages/evm/storage/index.html.ts index b585d0116..23ace0c3a 100644 --- a/src/pages/evm/storage/index.html.ts +++ b/src/pages/evm/storage/index.html.ts @@ -457,7 +457,7 @@ const html = `

Examples of

} contract EVMStorageMapping { - // slot of value = keccack256(key, slot where mapping is declared) + // slot of value = keccak256(key, slot where mapping is declared) mapping(address => uint256) public map; address public constant ADDR_1 = address(1); @@ -482,7 +482,7 @@ const html = `

Examples of

contract EVMStorageNestedMapping { // key0 => key1 => val - // slot of value = keccak256(key1, keccack256(key0, slot where nested mapping is declared)) + // slot of value = keccak256(key1, keccak256(key0, slot where nested mapping is declared)) mapping(address => mapping(address => uint256)) public map; address public constant ADDR_1 = address(1);