Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

ethereumjs-util version updated #1315

Merged
merged 2 commits into from
Oct 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 95 additions & 156 deletions remix-debug/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion remix-debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"main": "./index.js",
"dependencies": {
"commander": "^2.19.0",
"ethereumjs-util": "^4.5.0",
"ethereumjs-util": "^6.1.0",
"ethereumjs-vm": "3.0.0",
"fast-async": "^6.1.2",
"remix-lib": "0.4.14",
Expand Down
70 changes: 65 additions & 5 deletions remix-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion remix-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"async": "^2.1.2",
"ethereumjs-block": "^1.6.0",
"ethereumjs-tx": "^1.3.3",
"ethereumjs-util": "^5.1.2",
"ethereumjs-util": "^6.1.0",
"ethereumjs-vm": "3.0.0",
"ethers": "^4.0.27",
"events": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion remix-lib/src/execution/execution-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class StateManagerCommonStorageDump extends StateManager {
}

putContractStorage (address, key, value, cb) {
this.keyHashes[ethUtil.sha3(key).toString('hex')] = ethUtil.bufferToHex(key)
this.keyHashes[ethUtil.keccak(key).toString('hex')] = ethUtil.bufferToHex(key)
super.putContractStorage(address, key, value, cb)
}

Expand Down
2 changes: 1 addition & 1 deletion remix-lib/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ module.exports = {
value = '0x' + value
}
var ret = ethutil.bufferToHex(ethutil.setLengthLeft(value, 32))
ret = ethutil.sha3(ret)
ret = ethutil.keccak(ret)
return ethutil.bufferToHex(ret)
},

Expand Down
Loading