You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A tx which reverted never resolves and I can't get the receipt of the reverted transaction: receipt is not available neither in catch args or in error event args
Expected behavior
In case a transaction reverts or runs out of gas:
const receipt = await dummyContract.methods.revertMe().send()
.on("transactionHash", <should be triggered with tx hash>)
.on("receipt",
<should be triggered with tx receipt , receipt.status set to false>)
.on("confirmation",
<should be triggered for each confirmation with
confirmation number and with tx receipt, receipt.status set to false>)
.on("error", <should be triggered with error and receipt>)
.catch( <IMHO it should NOT be triggered in VM reverts or out of gas
rather resolve the call and let the caller handle it on error event or based on
resolved receipt's status
or at least should be triggered with (error, receipt) )
Actual behavior
on VM error I can't retrieve the receipt in any of these ways:
it's not passed to error event
it's not passed to catch block (although I think catch block shouldn't be reached in this scenario)
no receipt or confirmation event called
the tx never resolves so even the resolved so returned receipt can't be used
Description
A tx which reverted never resolves and I can't get the receipt of the reverted transaction: receipt is not available neither in catch args or in error event args
Expected behavior
In case a transaction reverts or runs out of gas:
Actual behavior
on VM error I can't retrieve the receipt in any of these ways:
error
eventcatch
block (although I think catch block shouldn't be reached in this scenario)receipt
orconfirmation
event calledSteps to reproduce the behavior
https://github.com/Augmint/web3js_integration_tests/blob/master/test/fails.js
Error Logs
N/A
Gists
https://github.com/Augmint/web3js_integration_tests/blob/master/test/fails.js
Versions
The text was updated successfully, but these errors were encountered: