Skip to content
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

feat: add new failed deposit trace call frame #265

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

smartcontracts
Copy link
Contributor

@smartcontracts smartcontracts commented Mar 8, 2024

Description
Natively supports the trace call where a deposit fails. Frame will appear empty with a "stop" type and the proper amount of gas used. We will need to document this to make it clear what's going on.

Tests
Added test cases.

@smartcontracts smartcontracts force-pushed the sc/stop-call-trace branch 2 times, most recently from bddd80e to fc67e9c Compare March 8, 2024 18:34
Natively supports the trace call where a deposit fails. Frame will
appear empty with a "failed_deposit" type and the proper amount of
gas used. Clients can now use and understand the result.
Copy link
Contributor

@trianglesphere trianglesphere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes looks good to me. Nicely tested + not breaking any other tests.

@smartcontracts smartcontracts marked this pull request as ready for review March 11, 2024 17:20
@smartcontracts smartcontracts requested a review from a team as a code owner March 11, 2024 17:20
@smartcontracts smartcontracts requested review from ajsutton and removed request for a team March 11, 2024 17:20
@smartcontracts smartcontracts merged commit 336d284 into optimism Mar 11, 2024
10 checks passed
@smartcontracts smartcontracts deleted the sc/stop-call-trace branch March 11, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants