diff --git a/libs/remix-debug/src/solidity-decoder/types/Mapping.ts b/libs/remix-debug/src/solidity-decoder/types/Mapping.ts index 0d8b9e643a..75f0557538 100644 --- a/libs/remix-debug/src/solidity-decoder/types/Mapping.ts +++ b/libs/remix-debug/src/solidity-decoder/types/Mapping.ts @@ -66,7 +66,7 @@ function getMappingLocation (key, position) { // key should be a hex string, and position an int const mappingK = toBuffer('0x' + key) - let mappingP = intToBuffer(position) + let mappingP = toBuffer(position) mappingP = setLengthLeft(mappingP, 32) const mappingKeyBuf = concatTypedArrays(mappingK, mappingP) const mappingStorageLocation: Buffer = keccak(mappingKeyBuf)