Skip to content

Commit

Permalink
fixing standart
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus committed Jan 30, 2020
1 parent e9c2f8c commit 1fca38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/ui/universal-dapp-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 1fca38a

Please sign in to comment.