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

[Feature] Add 7702 authorization list to rpc tx and receipt types #1032

Closed
mattsse opened this issue Jul 10, 2024 · 2 comments
Closed

[Feature] Add 7702 authorization list to rpc tx and receipt types #1032

mattsse opened this issue Jul 10, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mattsse
Copy link
Member

mattsse commented Jul 10, 2024

Component

rpc

Describe the feature you would like

ref ethereum/execution-apis#561

TODO

  • add authorizationList: Option<Vec<Authorization>> as an additional field to rpc Transaction and tx receipt types

/// An unsigned EIP-7702 authorization.
#[derive(Debug, Clone, RlpEncodable, RlpDecodable, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
pub struct Authorization {
/// The chain ID of the authorization.
pub chain_id: ChainId,
/// The address of the authorization.
pub address: Address,
/// The nonce for the authorization.
pub nonce: OptionalNonce,
}

Additional context

No response

@PanGan21
Copy link
Contributor

Hey @mattsse I did some effort for this in #1051 . Please let me know if something is missing! 🙂

@onbjerg
Copy link
Member

onbjerg commented Jul 16, 2024

Closing this as closed by #1051, thanks for the PR:)

@onbjerg onbjerg closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants