fix wrong parameter on runTx call

pull/1/head
Iuri Matias 5 years ago
parent a023d33756
commit 15e356c444
  1. 2
      src/blockchain/blockchain.js

@ -253,7 +253,7 @@ class Blockchain {
if (funABI.type === 'fallback') data.dataHex = value if (funABI.type === 'fallback') data.dataHex = value
const useCall = funABI.stateMutability === 'view' || funABI.stateMutability === 'pure' const useCall = funABI.stateMutability === 'view' || funABI.stateMutability === 'pure'
this.runTx({address, data, useCall}, confirmationCb, continueCb, promptCb, (error, txResult, _address, returnValue) => { this.runTx({to: address, data, useCall}, confirmationCb, continueCb, promptCb, (error, txResult, _address, returnValue) => {
if (error) { if (error) {
return logCallback(`${logMsg} errored: ${error} `) return logCallback(`${logMsg} errored: ${error} `)
} }

Loading…
Cancel
Save