change method used

pull/5370/head
yann300 4 years ago
parent c160313e3a
commit 77c7295756
  1. 2
      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)

Loading…
Cancel
Save