Commit 28130462 authored by yann300's avatar yann300

fix log message during call to (receive)

parent 8fe25a9a
...@@ -228,10 +228,11 @@ UniversalDAppUI.prototype.getCallButton = function (args) { ...@@ -228,10 +228,11 @@ UniversalDAppUI.prototype.getCallButton = function (args) {
UniversalDAppUI.prototype.runTransaction = function (lookupOnly, args, valArr, inputsValues, outputOverride) { UniversalDAppUI.prototype.runTransaction = function (lookupOnly, args, valArr, inputsValues, outputOverride) {
let self = this let self = this
let logMsg let logMsg
const functionName = args.funABI.type === 'function' ? args.funABI.name : `(${args.funABI.type})`
if (!lookupOnly) { if (!lookupOnly) {
logMsg = `call to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}` logMsg = `call to ${args.contractName}.${functionName}`
} else { } else {
logMsg = `transact to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}` logMsg = `transact to ${args.contractName}.${functionName}`
} }
var value = inputsValues var value = inputsValues
......
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