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

evm: add tx.authorizationList field #355

Merged
merged 2 commits into from
Nov 17, 2024
Merged

evm: add tx.authorizationList field #355

merged 2 commits into from
Nov 17, 2024

Conversation

tmcgroul
Copy link
Contributor

No description provided.

@tmcgroul tmcgroul requested a review from eldargab November 16, 2024 04:00
@@ -35,6 +35,16 @@ export interface EvmTransaction extends _EvmTx, _EvmTxReceipt {
}


export interface Authorization {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eldargab do we need Evm prefix as for other entities?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefix might be helpful, but don't forget to re-export Authorization in a prefix-less form.

I'm afraid Authorization is too ambiguous, though. May be call it like EIP7702Authorization?

@@ -64,6 +74,7 @@ export function getTxProps(fields: FieldSelection['transaction'], forArchive: bo
s: withSentinel('Transaction.s', '0x', BYTES),
yParity: option(natural),
chainId: option(natural),
authorizationList: option(array(Authorization)),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eldargab do we need ability to select each field manually or it's fine and we can load the whole array of structures?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's expose it as a whole.

@tmcgroul tmcgroul merged commit 36950dd into master Nov 17, 2024
1 check passed
@tmcgroul tmcgroul deleted the authorization-list branch November 17, 2024 06:00
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