-
Notifications
You must be signed in to change notification settings - Fork 26
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
test(blockifier): update test_revert_on_resource_overuse to include new resource bounds #1314
Conversation
a400602
to
e569b59
Compare
b5ed508
to
c513c51
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1314 +/- ##
===========================================
+ Coverage 40.10% 69.15% +29.04%
===========================================
Files 26 100 +74
Lines 1895 13447 +11552
Branches 1895 13447 +11552
===========================================
+ Hits 760 9299 +8539
- Misses 1100 3747 +2647
- Partials 35 401 +366 ☔ View full report in Codecov by Sentry. |
e569b59
to
26404f4
Compare
c513c51
to
4c7d6a1
Compare
26404f4
to
1e42bb3
Compare
4c7d6a1
to
88806ee
Compare
1e42bb3
to
b0bcf2b
Compare
88806ee
to
657a9af
Compare
b0bcf2b
to
241f6da
Compare
657a9af
to
ca28099
Compare
427f99a
to
3d0bf82
Compare
Artifacts upload triggered. View details here |
52ba961
to
0b8953a
Compare
3d0bf82
to
83bd562
Compare
Artifacts upload triggered. View details here |
0b8953a
to
6de4946
Compare
83bd562
to
3096d35
Compare
Artifacts upload triggered. View details here |
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 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware)
crates/blockifier/feature_contracts/cairo0/test_contract.cairo
line 100 at r2 (raw file):
return (); } send_message(7);
Why do you need it?
Code quote:
send_message(7);
crates/blockifier/src/transaction/post_execution_test.rs
line 339 at r2 (raw file):
// reverted. let low_max_fee = Fee(execution_info_measure.receipt.fee.0 - 1); let low_bounds = if version != TransactionVersion::THREE {
For future versions.
Suggestion:
if version < TransactionVersion::THREE
6de4946
to
f0f7db2
Compare
3096d35
to
161c029
Compare
Artifacts upload triggered. View details here |
f0f7db2
to
512e8ef
Compare
161c029
to
4f52227
Compare
4f52227
to
e72e877
Compare
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
Artifacts upload triggered. View details here |
…ew resource bounds
e72e877
to
c48181f
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @yoavGrs)
crates/blockifier/feature_contracts/cairo0/test_contract.cairo
line 100 at r2 (raw file):
Previously, yoavGrs wrote…
Why do you need it?
for the all_bounds_insufficient_l1_gas
case.
we need something that costs L1 gas even when user is paying for L2 stuff with L2 gas
Artifacts upload triggered. View details here |
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 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @dorimedini-starkware)
This change is