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

Fix: change nonce from U64 to u64 #341

Merged
merged 8 commits into from
Mar 19, 2024

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Mar 19, 2024

Motivation

Closes #335

Solution

Uses Serde's with = attribute and the existing u64_hex / u64_hex_opt to make sure RPC structs stay compliant.

Opening this PR as a draft first to get initial feedback. If implementation is correct I can add the other fields (chain_id, transaction_type, u128 native fields?) (largely implemented in #338)

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smol nit re serde,

also relevant, #338

crates/rpc-types/src/eth/transaction/mod.rs Outdated Show resolved Hide resolved
crates/rpc-types/src/eth/transaction/request.rs Outdated Show resolved Hide resolved
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mattsse mattsse marked this pull request as ready for review March 19, 2024 14:32
crates/genesis/src/lib.rs Outdated Show resolved Hide resolved
@mattsse mattsse merged commit 218ece4 into alloy-rs:main Mar 19, 2024
16 checks passed
@zerosnacks zerosnacks deleted the fix/change-nonce-U64-to-u64 branch March 19, 2024 15:26
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.

[Suggestion] Change nonce field to be u64 compatible
2 participants