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

fix: underflow panic when using "no_gas_measuring" feature #346

Merged

Conversation

ckoopmann
Copy link
Contributor

When using the "no_gas_measuring" feature, I encountered various underflow panics which seem to stem from calls to the "erase_cost" method which should not be called in this case.

This PR should fix that by wrapping those calls in an if crate::USE_GAS block analogous to other parts of the code.

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

Good catch!

@rakita rakita merged commit 329fd94 into bluealloy:main Jan 27, 2023
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