Skip to content
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

feat: genesis block state update #5

Draft
wants to merge 1 commit into
base: saya
Choose a base branch
from
Draft

feat: genesis block state update #5

wants to merge 1 commit into from

Conversation

kariy
Copy link
Member

@kariy kariy commented Jan 18, 2025

https://github.com/starkware-libs/cairo-lang/blob/a86e92bfde9c171c0856d7b46580c66e004922f3/src/starkware/starknet/solidity/StarknetState.sol#L19-L39

the solidity counterpart is using i256 but Cairo only has up to 128 bit signed integers. but considering this is used only for the block number, 128-bit is already plenty enough.

the max value for i128 is 170141183460469231731687303715884105727.

@kariy kariy requested a review from glihm as a code owner January 18, 2025 05:39
@kariy kariy marked this pull request as draft January 18, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant