From 28130462993ccdd308cec6ef579d93ac9f8f6369 Mon Sep 17 00:00:00 2001 From: yann300 Date: Fri, 31 Jan 2020 09:38:48 +0100 Subject: [PATCH] fix log message during call to (receive) --- src/app/ui/universal-dapp-ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/ui/universal-dapp-ui.js b/src/app/ui/universal-dapp-ui.js index 97dae39f25..af1aa339f3 100644 --- a/src/app/ui/universal-dapp-ui.js +++ b/src/app/ui/universal-dapp-ui.js @@ -228,10 +228,11 @@ UniversalDAppUI.prototype.getCallButton = function (args) { UniversalDAppUI.prototype.runTransaction = function (lookupOnly, args, valArr, inputsValues, outputOverride) { let self = this let logMsg + const functionName = args.funABI.type === 'function' ? args.funABI.name : `(${args.funABI.type})` if (!lookupOnly) { - logMsg = `call to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}` + logMsg = `call to ${args.contractName}.${functionName}` } else { - logMsg = `transact to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}` + logMsg = `transact to ${args.contractName}.${functionName}` } var value = inputsValues