-
Notifications
You must be signed in to change notification settings - Fork 21
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(blockifier): explicit names for versioned constants JSONs #998
feat(blockifier): explicit names for versioned constants JSONs #998
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 7 of 7 files at r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
490631d
to
f6acb0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
02e3914
to
ed1c192
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #998 +/- ##
===========================================
- Coverage 74.18% 62.57% -11.62%
===========================================
Files 359 125 -234
Lines 36240 15755 -20485
Branches 36240 15755 -20485
===========================================
- Hits 26886 9859 -17027
+ Misses 7220 5115 -2105
+ Partials 2134 781 -1353
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a225951
to
5e29752
Compare
Signed-off-by: Dori Medini <dori@starkware.co>
5e29752
to
e0b54aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 8 of 9 files at r3, all commit messages.
Reviewable status: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware)
crates/papyrus_execution/src/lib.rs
line 878 at r3 (raw file):
VersionedConstants::get(blockifier_starknet_version) } None => VersionedConstants::latest_constants(),
Why do they need this arm? they take the latest if there is no match.
So either remove it or check v0_13_3 explicitly
(also, they are missing 0.13.1.1 and 0.13.2.1... a safer way is to assert that the given version is > than the last supported. but non-blocking since it's out of scope)
Code quote:
} else {
BlockifierStarknetVersion::V0_13_3
};
VersionedConstants::get(blockifier_starknet_version)
}
None => VersionedConstants::latest_constants(),
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dan-starkware, @dorimedini-starkware, and @ShahakShama)
crates/papyrus_execution/src/lib.rs
line 878 at r3 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Why do they need this arm? they take the latest if there is no match.
So either remove it or check v0_13_3 explicitly(also, they are missing 0.13.1.1 and 0.13.2.1... a safer way is to assert that the given version is > than the last supported. but non-blocking since it's out of scope)
main Q is why are there two different structs?
@ShahakShama or @dan-starkware PTAL at this: looks like you should be using the blockifier StarknetVersion enum instead of strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 9 of 10 files reviewed, 1 unresolved discussion (waiting on @dan-starkware, @dorimedini-starkware, and @ShahakShama)
crates/papyrus_execution/src/lib.rs
line 878 at r3 (raw file):
Previously, dorimedini-starkware wrote…
main Q is why are there two different structs?
@ShahakShama or @dan-starkware PTAL at this: looks like you should be using the blockifier StarknetVersion enum instead of strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 9 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
This change is