return result for non VM calls

pull/1/head
LianaHus 5 years ago
parent c485283f2e
commit f59ee22262
  1. 2
      src/blockchain/blockchain.js

@ -472,7 +472,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