ensure return value is properly passed

pull/1227/head
yann300 4 years ago committed by Aniket
parent bf09e80270
commit 4d88745ff2
  1. 8
      apps/remix-ide/src/blockchain/blockchain.js

@ -463,12 +463,12 @@ class Blockchain {
try { error = 'error: ' + JSON.stringify(error) } catch (e) {}
}
}
next(error, result)
next(error, result, tx)
}
)
}
],
async (error, txResult) => {
async (error, txResult, tx) => {
if (error) {
return cb(error)
}
@ -487,6 +487,10 @@ class Blockchain {
}
}
}
if (!isVM && tx && tx.useCall) {
returnValue = toBuffer(txResult.result)
}
let address = null
if (txResult && txResult.receipt) {

Loading…
Cancel
Save