From 1b06999b7da8c3d1fa579b350f29cadb993d8b82 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Mon, 6 Apr 2020 23:33:00 +0200 Subject: [PATCH] return result for non VM calls --- src/blockchain/blockchain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockchain/blockchain.js b/src/blockchain/blockchain.js index 2104306da6..2a1666da3f 100644 --- a/src/blockchain/blockchain.js +++ b/src/blockchain/blockchain.js @@ -472,7 +472,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)