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

change uint64 to uint256 in tx structs #49

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

zeroXbrock
Copy link
Member

@zeroXbrock zeroXbrock commented Feb 21, 2024

Many tx params defined as uint64 are especially susceptible to overflows, such as value & maxFeePerGas. Some others like nonce & chainId, while practically insusceptible to overflows, were being needlessly cast to/from uint64 during RLP decoding/encoding.
Making them all uint256 solves these problems.

@zeroXbrock zeroXbrock changed the title change uint64 to uint256 in tx types change uint64 to uint256 in tx structs Feb 21, 2024
@ferranbt ferranbt merged commit a09bca6 into main Feb 22, 2024
2 checks passed
@ferranbt ferranbt deleted the uint256-eip1559-tx-params branch March 2, 2024 15:32
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.

2 participants