Merge pull request #1716 from eswarasai/fix/sign-message

Upgraded ethereumjs-util to fix sign message issue
pull/3094/head
yann300 6 years ago committed by GitHub
commit 7c133ea0a1
  1. 1
      .gitignore
  2. 2
      package.json
  3. 8
      src/app/tabs/runTab/model/recorder.js

1
.gitignore vendored

@ -1,3 +1,4 @@
.idea
.vscode
build
node_modules

@ -21,7 +21,7 @@
"csjs-inject": "^1.0.1",
"csslint": "^1.0.2",
"deep-equal": "^1.0.1",
"ethereumjs-util": "^5.1.2",
"ethereumjs-util": "^6.1.0",
"execr": "^1.0.1",
"exorcist": "^0.4.0",
"fast-async": "6.3.1",

@ -31,8 +31,8 @@ class Recorder {
var record = { value, parameters: payLoad.funArgs }
if (!to) {
var abi = payLoad.contractABI
var sha3 = ethutil.bufferToHex(ethutil.sha3(abi))
record.abi = sha3
var keccak = ethutil.bufferToHex(ethutil.keccak(abi))
record.abi = keccak
record.contractName = payLoad.contractName
record.bytecode = payLoad.contractBytecode
record.linkReferences = payLoad.linkReferences
@ -43,9 +43,9 @@ class Recorder {
}
}
}
self.data._abis[sha3] = abi
self.data._abis[keccak] = abi
this.data._contractABIReferences[timestamp] = sha3
this.data._contractABIReferences[timestamp] = keccak
} else {
var creationTimestamp = this.data._createdContracts[to]
record.to = `created{${creationTimestamp}}`

Loading…
Cancel
Save