From 1c898b8476f558bec38e4c4cce845acd65d0c3c9 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 27 Aug 2018 16:58:51 +0200 Subject: [PATCH] save inputs list in record --- src/recorder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/recorder.js b/src/recorder.js index 5bf6bd7863..12aedf769e 100644 --- a/src/recorder.js +++ b/src/recorder.js @@ -51,8 +51,8 @@ class Recorder { record.to = `created{${creationTimestamp}}` record.abi = this.data._contractABIReferences[creationTimestamp] } - record.name = payLoad.funAbi.name + record.inputs = txHelper.serializeInputs(payLoad.funAbi) record.type = payLoad.funAbi.type udapp.getAccounts((error, accounts) => { @@ -202,7 +202,7 @@ class Recorder { if (tx.record.type === 'constructor') { fnABI = txHelper.getConstructorInterface(abi) } else { - fnABI = txHelper.getFunction(abi, record.name) + fnABI = txHelper.getFunction(abi, record.name + record.inputs) } if (!fnABI) { modal.alert('cannot resolve abi of ' + JSON.stringify(record, null, '\t') + '. Execution stopped at ' + index)