-
Notifications
You must be signed in to change notification settings - Fork 107
Use BlockNumber in GetBlockHashRequest. #604
Use BlockNumber in GetBlockHashRequest. #604
Conversation
e9fd3b2
to
57aef41
Compare
986807d
to
8238804
Compare
There is a correctness issue here. Code quote: u64::try_from(usize::try_from(block_number_as_felt)? |
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 9 of 9 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1)
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 @noaov1)
Previously, ArniStarkware (Arnon Hod) wrote…
Talked with @Yoni-Starkware . Let us merge this PR for now.
|
8238804
to
9f96a68
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: 7 of 9 files reviewed, 1 unresolved discussion (waiting on @ArniStarkware and @dafnamatsry)
crates/blockifier/src/execution/syscalls/mod.rs
line 306 at r3 (raw file):
string: block_number_as_felt.to_string(), }) })?);
WDYT?
Suggestion:
let block_number = vm.get_integer(*ptr)?;
let block_number = felt.to_u64().ok_or_else(|| {
SyscallExecutionError::StarknetApiError(StarknetApiError::OutOfRange {
string: felt.to_string(),
})
})?;
Previously, noaov1 (Noa Oved) wrote…
Looks great! |
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: 7 of 9 files reviewed, all discussions resolved (waiting on @dafnamatsry)
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 2 of 2 files at r3, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
Previously, ArniStarkware (Arnon Hod) wrote…
See #668. |
This change is