Merge pull request #2708 from ethereum/callD

Return result for non VM calls
pull/5370/head
yann300 5 years ago committed by GitHub
commit 6ec36a454b
  1. 2
      src/blockchain/blockchain.js

@ -467,7 +467,7 @@ class Blockchain {
if (txResult && txResult.result) {
address = isVM ? txResult.result.createdAddress : txResult.result.contractAddress
// if it's not the VM, we don't have return value. We only have the transaction, and it does not contain the return value.
returnValue = (txResult.result.execResult && isVM) ? txResult.result.execResult.returnValue : ''
returnValue = (txResult.result.execResult && isVM) ? txResult.result.execResult.returnValue : txResult.result
}
cb(error, txResult, address, returnValue)

Loading…
Cancel
Save