Merge pull request #2708 from ethereum/callD

Return result for non VM calls
pull/1/head
yann300 5 years ago committed by GitHub
commit 2a7fb5bed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/blockchain/blockchain.js

@ -467,7 +467,7 @@ class Blockchain {
if (txResult && txResult.result) { if (txResult && txResult.result) {
address = isVM ? txResult.result.createdAddress : txResult.result.contractAddress 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. // 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) cb(error, txResult, address, returnValue)

Loading…
Cancel
Save