Commit a5aac925 authored by aniket-engg's avatar aniket-engg

ethjs-util function updated

parent 1b1380f6
{
"name": "remix-debug",
"version": "0.3.17",
"version": "0.3.18",
"description": "Ethereum IDE and tools for the web",
"contributors": [
{
......
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment