-
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
fix(blockifier_reexecution): fix bug in get contract class #1759
fix(blockifier_reexecution): fix bug in get contract class #1759
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1759 +/- ##
==========================================
+ Coverage 40.10% 41.77% +1.66%
==========================================
Files 26 197 +171
Lines 1895 23304 +21409
Branches 1895 23304 +21409
==========================================
+ Hits 760 9735 +8975
- Misses 1100 13114 +12014
- Partials 35 455 +420 ☔ View full report in Codecov by Sentry. |
3600295
to
f532006
Compare
7a8e174
to
96eeca3
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 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @aner-starkware and @AvivYossef-starkware)
crates/blockifier_reexecution/src/state_reader/test_state_reader.rs
line 302 at r1 (raw file):
"class_hash": class_hash.0.to_string(), }); let contract_value =
Suggestion:
raw_contract_class
crates/blockifier_reexecution/src/state_reader/test_state_reader.rs
line 311 at r1 (raw file):
} Ok(contract) => contract, };
what happens if you try this? (note the ?
at the end - i would expect a natural conversion from the send_rpc_request
error to a variant of StateError
)
Suggestion:
let contract_value =
match self.rpc_state_reader.send_rpc_request("starknet_getClass", params.clone()) {
Err(RPCStateReaderError::ClassHashNotFound(_)) => {
return Err(StateError::UndeclaredClassHash(*class_hash));
}
other_result => other_result,
}?;
f532006
to
ef717ce
Compare
96eeca3
to
f31706d
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 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @aner-starkware)
ef717ce
to
dd06e06
Compare
f31706d
to
d339e52
Compare
4787c66
to
bb0e710
Compare
d339e52
to
12fe759
Compare
bb0e710
to
b366106
Compare
12fe759
to
208e455
Compare
b4643dc
to
0fe0464
Compare
208e455
to
07d6e9e
Compare
0fe0464
to
bc3a4af
Compare
07d6e9e
to
6458aac
Compare
bc3a4af
to
9ceac3b
Compare
6458aac
to
a2eb905
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 1 of 1 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @aner-starkware)
9ceac3b
to
49ea985
Compare
a2eb905
to
625dd68
Compare
49ea985
to
0a1f2b4
Compare
625dd68
to
b93bc31
Compare
6723e82
to
2b5af65
Compare
b93bc31
to
c728fca
Compare
2b5af65
to
f08222d
Compare
c728fca
to
5993328
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 1 of 1 files at r6, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @aner-starkware)
f08222d
to
4e63b58
Compare
5993328
to
97eee29
Compare
97eee29
to
68a18f9
Compare
Merge activity
|
No description provided.