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

Better errors on out of gas #7181

Merged
merged 5 commits into from
Jan 16, 2024
Merged

Conversation

nicolaslara
Copy link
Contributor

What is the purpose of the change

When running our of gas the FE displays the confusing error function swapExactAmountIn failed due to internal reason: [WritePerByte].

This PR ensures the out of gas error is displayed

Testing and Verifying

added a simple test

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@github-actions github-actions bot added C:x/gamm Changes, features and bugs related to the gamm module. C:x/poolmanager labels Dec 22, 2023
@mattverse mattverse added the V:state/breaking State machine breaking PR label Jan 2, 2024
Copy link
Member

@mattverse mattverse left a comment

Choose a reason for hiding this comment

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

Nice

@nicolaslara nicolaslara merged commit 891866b into main Jan 16, 2024
1 check passed
@nicolaslara nicolaslara deleted the nicolas/better-gas-errors-on-trade branch January 16, 2024 10:23
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/gamm Changes, features and bugs related to the gamm module. C:x/poolmanager V:state/breaking State machine breaking PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants