|
|
@ -31,8 +31,8 @@ class Recorder { |
|
|
|
var record = { value, parameters: payLoad.funArgs } |
|
|
|
var record = { value, parameters: payLoad.funArgs } |
|
|
|
if (!to) { |
|
|
|
if (!to) { |
|
|
|
var abi = payLoad.contractABI |
|
|
|
var abi = payLoad.contractABI |
|
|
|
var sha3 = ethutil.bufferToHex(ethutil.sha3(abi)) |
|
|
|
var keccak = ethutil.bufferToHex(ethutil.keccak(abi)) |
|
|
|
record.abi = sha3 |
|
|
|
record.abi = keccak |
|
|
|
record.contractName = payLoad.contractName |
|
|
|
record.contractName = payLoad.contractName |
|
|
|
record.bytecode = payLoad.contractBytecode |
|
|
|
record.bytecode = payLoad.contractBytecode |
|
|
|
record.linkReferences = payLoad.linkReferences |
|
|
|
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 { |
|
|
|
} else { |
|
|
|
var creationTimestamp = this.data._createdContracts[to] |
|
|
|
var creationTimestamp = this.data._createdContracts[to] |
|
|
|
record.to = `created{${creationTimestamp}}` |
|
|
|
record.to = `created{${creationTimestamp}}` |
|
|
|