fix mapping decoding

pull/7/head
yann300 7 years ago
parent 658de38880
commit c9f14c69a7
  1. 1
      remix-solidity/src/decoder/types/Mapping.js

@ -68,7 +68,6 @@ function getMappingLocation (key, position) {
// key should be a hex string, and position an int // key should be a hex string, and position an int
var mappingK = ethutil.toBuffer('0x' + key) var mappingK = ethutil.toBuffer('0x' + key)
mappingK = ethutil.setLengthLeft(mappingK, 32)
var mappingP = ethutil.intToBuffer(position) var mappingP = ethutil.intToBuffer(position)
mappingP = ethutil.setLengthLeft(mappingP, 32) mappingP = ethutil.setLengthLeft(mappingP, 32)
var mappingKeyBuf = concatTypedArrays(mappingK, mappingP) var mappingKeyBuf = concatTypedArrays(mappingK, mappingP)

Loading…
Cancel
Save