-
Notifications
You must be signed in to change notification settings - Fork 369
refactor(homestead): remove int() from calculate_block_difficulty (#1415) #1684
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
base: forks/osaka
Are you sure you want to change the base?
refactor(homestead): remove int() from calculate_block_difficulty (#1415) #1684
Conversation
…hereum#1415) - Remove all int() casts - No new variables - All comments preserved - Behavior unchanged - All py3 tests pass
|
Hello @SamWilsn @Carsons-Eels Please we need a review on this pr still a work in progress and trying to take it one file at a time. |
|
I have a question @SamWilsn How should we properly fix the ethereum-types stub files to declare these operations (like |
|
The |
This is from the tox run I did - src/ethereum/forks/homestead/fork.py:769: error: Unsupported operand types for // ("Uint" and "int") |
|
And this is the command uvx tox -e static please am I missing a step? |
|
Ah, that error is correct. You cannot use |
Ooh okay so our fix for example should be |
|
@SamWilsn , @bomanaps , @gurukamath , please help me review thank u |
int()casts2**num_bomb_periodskeptpy3tests pass