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

Use TransactionInfo type for rpc transaction construction #10494

Closed
Tracked by #12576
mattsse opened this issue Aug 24, 2024 · 1 comment · Fixed by #10500
Closed
Tracked by #12576

Use TransactionInfo type for rpc transaction construction #10494

mattsse opened this issue Aug 24, 2024 · 1 comment · Fixed by #10500
Assignees
Labels
A-rpc Related to the RPC implementation C-enhancement New feature or request D-good-first-issue Nice and easy! A great choice to get started

Comments

@mattsse
Copy link
Collaborator

mattsse commented Aug 24, 2024

Describe the feature

these function accept the blockcontext/txinfo as input:

block_hash: B256,
block_number: BlockNumber,
base_fee: Option<u64>,
tx_index: usize,

we have a type for this: TransactionInfo: https://github.com/alloy-rs/alloy/blob/8a06509c3f85885ecfab110af0819b354d794b68/crates/rpc-types-eth/src/transaction/common.rs#L10-L10

TODO

  • use that type instead of individual fields

Additional context

No response

@mattsse mattsse added C-enhancement New feature or request S-needs-triage This issue needs to be labelled labels Aug 24, 2024
@mattsse mattsse added D-good-first-issue Nice and easy! A great choice to get started A-rpc Related to the RPC implementation and removed S-needs-triage This issue needs to be labelled labels Aug 24, 2024
@SkandaBhat
Copy link
Contributor

Please assign @mattsse!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-enhancement New feature or request D-good-first-issue Nice and easy! A great choice to get started
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants