Commit d4d91b8b authored by LeviBarnes's avatar LeviBarnes

Record timestamps of contracts passed as arguments

parent 9c47b675
...@@ -54,6 +54,11 @@ class Recorder { ...@@ -54,6 +54,11 @@ class Recorder {
record.name = payLoad.funAbi.name record.name = payLoad.funAbi.name
record.inputs = txHelper.serializeInputs(payLoad.funAbi) record.inputs = txHelper.serializeInputs(payLoad.funAbi)
record.type = payLoad.funAbi.type record.type = payLoad.funAbi.type
for (var p in record.parameters) {
var thisarg = record.parameters[p]
var thistimestamp = this.data._createdContracts[thisarg]
if (thistimestamp) record.parameters[p] = `created{${thistimestamp}}`
}
this.udapp.getAccounts((error, accounts) => { this.udapp.getAccounts((error, accounts) => {
if (error) return console.log(error) if (error) return console.log(error)
......
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