ethjs-util function updated

pull/5370/head
aniket-engg 5 years ago
parent b7f9053f52
commit 45b829154d
  1. 2
      remix-debug/package.json
  2. 2
      remix-debug/src/solidity-decoder/types/Mapping.js

@ -1,6 +1,6 @@
{ {
"name": "remix-debug", "name": "remix-debug",
"version": "0.3.17", "version": "0.3.18",
"description": "Ethereum IDE and tools for the web", "description": "Ethereum IDE and tools for the web",
"contributors": [ "contributors": [
{ {

@ -73,7 +73,7 @@ function getMappingLocation (key, position) {
mappingP = ethutil.setLengthLeft(mappingP, 32) mappingP = ethutil.setLengthLeft(mappingP, 32)
var mappingKeyBuf = concatTypedArrays(mappingK, mappingP) var mappingKeyBuf = concatTypedArrays(mappingK, mappingP)
var mappingKeyPreimage = '0x' + mappingKeyBuf.toString('hex') var mappingKeyPreimage = '0x' + mappingKeyBuf.toString('hex')
var mappingStorageLocation = ethutil.sha3(mappingKeyPreimage) var mappingStorageLocation = ethutil.keccak(mappingKeyPreimage)
mappingStorageLocation = new ethutil.BN(mappingStorageLocation, 16) mappingStorageLocation = new ethutil.BN(mappingStorageLocation, 16)
return mappingStorageLocation return mappingStorageLocation
} }

Loading…
Cancel
Save