From 45b829154d07f6eccfdbcdc1f9c965124d0d3c89 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 3 Dec 2019 18:36:40 +0530 Subject: [PATCH] ethjs-util function updated --- remix-debug/package.json | 2 +- remix-debug/src/solidity-decoder/types/Mapping.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/remix-debug/package.json b/remix-debug/package.json index d3e607653b..122401f4d8 100644 --- a/remix-debug/package.json +++ b/remix-debug/package.json @@ -1,6 +1,6 @@ { "name": "remix-debug", - "version": "0.3.17", + "version": "0.3.18", "description": "Ethereum IDE and tools for the web", "contributors": [ { diff --git a/remix-debug/src/solidity-decoder/types/Mapping.js b/remix-debug/src/solidity-decoder/types/Mapping.js index 325b5e2f4f..e39f381d15 100644 --- a/remix-debug/src/solidity-decoder/types/Mapping.js +++ b/remix-debug/src/solidity-decoder/types/Mapping.js @@ -73,7 +73,7 @@ function getMappingLocation (key, position) { mappingP = ethutil.setLengthLeft(mappingP, 32) var mappingKeyBuf = concatTypedArrays(mappingK, mappingP) var mappingKeyPreimage = '0x' + mappingKeyBuf.toString('hex') - var mappingStorageLocation = ethutil.sha3(mappingKeyPreimage) + var mappingStorageLocation = ethutil.keccak(mappingKeyPreimage) mappingStorageLocation = new ethutil.BN(mappingStorageLocation, 16) return mappingStorageLocation }