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 VM fee issue due to selection of wrong versioned constants #2583

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

infrmtcs
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.67%. Comparing base (77f398a) to head (3c59a65).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2583      +/-   ##
==========================================
+ Coverage   73.64%   73.67%   +0.02%     
==========================================
  Files         137      137              
  Lines       16675    16711      +36     
==========================================
+ Hits        12280    12311      +31     
- Misses       3534     3538       +4     
- Partials      861      862       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@infrmtcs infrmtcs marked this pull request as draft February 28, 2025 16:37
Comment on lines -714 to +718
} else if version < StarknetVersion::from_str("0.13.2.1").unwrap() {
CONSTANTS.get(&"0.13.2".to_string()).unwrap().to_owned()
} else if version < StarknetVersion::from_str("0.13.3").unwrap() {
CONSTANTS.get(&"0.13.3".to_string()).unwrap().to_owned()
CONSTANTS.get(&"0.13.2".to_string()).unwrap().to_owned()
} else if version < StarknetVersion::from_str("0.13.4").unwrap() {
CONSTANTS.get(&"0.13.3".to_string()).unwrap().to_owned()
} else if version < StarknetVersion::from_str("0.13.5").unwrap() {
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think of having <= comparison so our brains can pick this kind of errors better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the intended behaviour is: Use 1.3.4 until next version appears. Let me try with >= to see if it works.

@rodrigo-pino rodrigo-pino added Bug Something isn't working or security issue High priority Needs to be solved this week or the next labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working or security issue High priority Needs to be solved this week or the next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants