-
Notifications
You must be signed in to change notification settings - Fork 441
chore: provide a better out-of-gas error UX #4951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: D4ryl00 <[email protected]>
🛠 PR Checks Summary🔴 Pending initial approval by a review team member, or review from tech-staff Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: D4ryl00 <[email protected]>
Signed-off-by: D4ryl00 <[email protected]>
Signed-off-by: D4ryl00 <[email protected]>
Signed-off-by: D4ryl00 <[email protected]>
Signed-off-by: D4ryl00 <[email protected]>
fixes #3704
This PR is a proposed solution to issue #3704. It focuses only on improving the “out of gas” error, whereas PR #4451 also aims to improve the UX to help users avoid running out of gas.
Changes
Before
GAS USED is the gas used until the panic during the simulation stage.
Now
GAS USED is the total gas used of the transaction, now calculate during the simulation stage.
Message updated: GAS USED is the gas used UNTIL the panic (no simulation).
Message updated: GAS USED is the gas used UNTIL the panic (before running the tx).