Skip to content

Add support for relayer EIP-7702 authorizations#355

Merged
attente merged 5 commits intomasterfrom
eip-7702
Apr 23, 2026
Merged

Add support for relayer EIP-7702 authorizations#355
attente merged 5 commits intomasterfrom
eip-7702

Conversation

@patrislav
Copy link
Copy Markdown
Member

@patrislav patrislav commented Apr 17, 2026

Usage:

signedTxns, err := w.SignTransactions(ctx, sequence.Transactions{txn})
if err != nil { /* ... */ }

authNonce, err := w.GetProvider().PendingNonceAt(ctx, w.Address())
if err != nil { /* ... */ }

auth, err := gethTypes.SignSetCode(w.privateKey, gethTypes.SetCodeAuthorization{
	ChainID: *uint256.NewInt(chainID),
	Address: common.HexToAddress(eip7702Implementation),
	Nonce:   authNonce,
})
if err != nil { /* ... */ }

signedTxns.Authorization = &auth

w.SendTransactions(ctx, signedTxns)

@attente
Copy link
Copy Markdown
Contributor

attente commented Apr 23, 2026

Thanks @patrislav, can you please update this PR? The API that was merged was modified after your draft: https://github.com/0xsequence/relayer/commit/d4a3cf38d82e3a42a2282948cf53d841aca46d96#diff-5f9f2572ed9076fa74d6a441546c8f1fbd6ede05d457554b7adb361b692b3f17.

@patrislav patrislav marked this pull request as ready for review April 23, 2026 17:22
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5584576422

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread relayer/relayer.go Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 19cc97cc2e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread relayer/relayer.go Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e28fc2f1c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread relayer/relayer.go Outdated
@attente attente merged commit 33323dd into master Apr 23, 2026
6 checks passed
@attente attente deleted the eip-7702 branch April 23, 2026 18:22
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