Refactored ethutil.sha3 to ethutil.keccak

pull/1/head
Eswara Sai 6 years ago
parent ffe7173479
commit eb008699cb
No known key found for this signature in database
GPG Key ID: 65239C6436A828E8
  1. 8
      src/app/tabs/runTab/model/recorder.js

@ -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