Commit 09dc7a4a authored by aniket-engg's avatar aniket-engg Committed by Aniket

remix-lib tests fixes

parent 399b878a
...@@ -27,7 +27,7 @@ function resultToRemixTx (txResult) { ...@@ -27,7 +27,7 @@ function resultToRemixTx (txResult) {
if (isHexString(result)) { if (isHexString(result)) {
returnValue = result returnValue = result
} else if (execResult !== undefined) { } else if (execResult !== undefined) {
returnValue = execResult.return returnValue = execResult.returnValue
errorMessage = execResult.exceptionError errorMessage = execResult.exceptionError
} }
......
...@@ -46,12 +46,11 @@ const VM_RESULT = { ...@@ -46,12 +46,11 @@ const VM_RESULT = {
gasRefund: new BN(0), gasRefund: new BN(0),
gasUsed: new BN(GAS_USED_INT), gasUsed: new BN(GAS_USED_INT),
status: STATUS_OK, status: STATUS_OK,
vm: { execResult: {
exception: 1,
exceptionError: null, exceptionError: null,
gasRefund: new BN(0), gasRefund: new BN(0),
gasUsed: new BN(GAS_USED_INT), gasUsed: new BN(GAS_USED_INT),
return: RETURN_VALUE_BUFFER returnValue: RETURN_VALUE_BUFFER
} }
}, },
transactionHash: TRANSACTION_HASH transactionHash: TRANSACTION_HASH
...@@ -103,8 +102,7 @@ tape('converts VM result to RemixTx', function (t) { ...@@ -103,8 +102,7 @@ tape('converts VM result to RemixTx', function (t) {
t.equal(remixTx.return, RETURN_VALUE_HEX) t.equal(remixTx.return, RETURN_VALUE_HEX)
t.equal(remixTx.error, null) t.equal(remixTx.error, null)
txResult.result.vm.exception = 0 txResult.result.execResult.exceptionError = 'this is an error'
txResult.result.vm.exceptionError = 'this is an error'
remixTx = resultToRemixTx(txResult) remixTx = resultToRemixTx(txResult)
t.equal(remixTx.error, 'this is an error') t.equal(remixTx.error, 'this is an error')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment