change method used

pull/1122/head
yann300 4 years ago
parent de2e95c0b1
commit 6c7f6638af
  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