diff --git a/remix-lib/src/web3Provider/web3VmProvider.js b/remix-lib/src/web3Provider/web3VmProvider.js index 189a44617e..17f3a644a7 100644 --- a/remix-lib/src/web3Provider/web3VmProvider.js +++ b/remix-lib/src/web3Provider/web3VmProvider.js @@ -122,6 +122,7 @@ web3VmProvider.prototype.txProcessed = function (self, data) { } self.txsReceipt[self.processingHash].logs = logs self.txsReceipt[self.processingHash].transactionHash = self.processingHash + self.txsReceipt[self.processingHash].status = '0x' + data.vm.exception.toString(16) if (data.createdAddress) { var address = util.hexConvert(data.createdAddress) diff --git a/remix-simulator/src/methods/transactions.js b/remix-simulator/src/methods/transactions.js index 53834ea7dd..1e0f315d2c 100644 --- a/remix-simulator/src/methods/transactions.js +++ b/remix-simulator/src/methods/transactions.js @@ -39,7 +39,7 @@ Transactions.prototype.eth_getTransactionReceipt = function (payload, cb) { 'cumulativeGasUsed': '0x06345f', 'contractAddress': receipt.contractAddress, 'logs': receipt.logs, - 'status': 1 + 'status': receipt.status } cb(null, r)