Commit e374061a authored by LianaHus's avatar LianaHus Committed by Liana Husikyan

fixed condition

parent 8d0a1fc4
...@@ -151,7 +151,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) { ...@@ -151,7 +151,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) {
function clickButton (valArr, inputsValues) { function clickButton (valArr, inputsValues) {
let logMsg let logMsg
if (lookupOnly) { if (!lookupOnly) {
logMsg = `call to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}` logMsg = `call to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}`
} else { } else {
logMsg = `transact to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}` logMsg = `transact to ${args.contractName}.${(args.funABI.name) ? args.funABI.name : '(fallback)'}`
...@@ -254,7 +254,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) { ...@@ -254,7 +254,7 @@ UniversalDAppUI.prototype.getCallButton = function (args) {
// contractsDetails is used to resolve libraries // contractsDetails is used to resolve libraries
txFormat.buildData(args.contractName, args.contractAbi, {}, false, args.funABI, args.funABI.type !== 'fallback' ? value : '', (error, data) => { txFormat.buildData(args.contractName, args.contractAbi, {}, false, args.funABI, args.funABI.type !== 'fallback' ? value : '', (error, data) => {
if (!error) { if (!error) {
if (lookupOnly) { if (!lookupOnly) {
self.logCallback(`${logMsg} pending ... `) self.logCallback(`${logMsg} pending ... `)
} else { } else {
self.logCallback(`${logMsg}`) self.logCallback(`${logMsg}`)
......
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