Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update spec reader tests #657
base: json-rpc-v0.8.0
Are you sure you want to change the base?
Update spec reader tests #657
Changes from 39 commits
a552d1d
1779527
14accab
0f9d2ed
54a14b2
587926d
b1d00d9
65eeba7
647ba27
7f4996b
369a958
f7aaa1e
2e20d3d
b9a1382
0a3b581
40afd35
3cc1efd
be027d8
17a5050
b8c1c6b
4a0eb65
4793568
650a70e
ff9e3a8
270f95f
2525f02
143148c
b327704
d53d373
9d82830
e72bede
4349848
b427f79
599b2d6
d25a023
6327376
a88285b
80c5193
4cce222
a3f9cac
0658f67
71424eb
a8e7514
b567418
a9b4bdf
b2e2207
11f9079
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
When will it be false? Only when one of the blocks in
num_to_hash
has the same number as pending_block? And when should that be the case?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.
Exactly in this case.
num_to_hash
apart from being in the same object aspending_block
has no relation to it.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.
Creating pending block have to be changed. It should advance the block number, but this is happening not in StarknetBlocks file, but in Starknet. Thats why this case is covered
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.
There already is a util function
get_versioned_constants
. Perhaps we should unify the way these versioned constants are obtained, meaning either always use the existing util function or remove it.