diff --git a/src/app/ui/universal-dapp-ui.js b/src/app/ui/universal-dapp-ui.js index 8dbd4ebd88b..03a34c06db6 100644 --- a/src/app/ui/universal-dapp-ui.js +++ b/src/app/ui/universal-dapp-ui.js @@ -161,7 +161,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address const fallback = self.udapp.getFallbackInterface(contractABI) const receive = self.udapp.getReceiveInterface(contractABI) const args = { - funABI: (fallback ? fallback : receive), + funABI: fallback || receive, address: address, contractName: contractName, contractABI: contractABI @@ -190,7 +190,7 @@ UniversalDAppUI.prototype.renderInstanceFromABI = function (contractABI, address if (!fallback) { setLLIError("'Fallback' function is not defined") } - } + } if (!receive && !fallback) setLLIError("Both 'receive' and 'fallback' functions are not defined") if (!error) self.runTransaction(false, args, null, calldata, null) }