-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor(base_layer): remove optional finality #869
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #869 +/- ##
=======================================
Coverage 74.29% 74.29%
=======================================
Files 358 357 -1
Lines 36288 36214 -74
Branches 36288 36214 -74
=======================================
- Hits 26960 26907 -53
+ Misses 7190 7170 -20
+ Partials 2138 2137 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e3367ba
to
ae8ebdc
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 r1, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @giladchase)
744efb1
to
1967659
Compare
ae8ebdc
to
bb4d634
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 @giladchase)
bb4d634
to
c15b065
Compare
1967659
to
4f0d83f
Compare
239375b
to
408ffed
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 @giladchase)
e279ad0
to
8f600fe
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 r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @giladchase)
crates/papyrus_base_layer/src/ethereum_base_layer_contract.rs
line 102 at r4 (raw file):
async fn latest_proved_block( &self, finality: u64,
Maybe add a short sentence about 0
signifying "latest"? Might be obvious, so your call.
Code quote:
finality: u64,
8f600fe
to
3910b41
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 r5, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @giladchase)
crates/papyrus_base_layer/src/ethereum_base_layer_contract.rs
line 100 at r5 (raw file):
type Error = EthereumBaseLayerError; /// Gets the latest proved block on Ethereum, where finality determines how many
Suggestion:
Returns
No finality is equivalent to passing finality 0. commit-id:2f82d223
3910b41
to
dee5efe
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 @giladchase)
No finality is equivalent to passing finality 0.
commit-id:2f82d223
This change is