Skip to content

feat(rpc): Add OpTransactionRequest and associate it with TransactionRequest of Optimism#557

Merged
klkvr merged 1 commit intomainfrom
rpc-op-tx-req
Jun 25, 2025
Merged

feat(rpc): Add OpTransactionRequest and associate it with TransactionRequest of Optimism#557
klkvr merged 1 commit intomainfrom
rpc-op-tx-req

Conversation

@RomanHodulak
Copy link
Copy Markdown
Contributor

Motivation

The change #525 introduced ambiguity of alloy_network::TransactionBuilder implementation for TransactionRequest, being implemented twice once for Ethereum and once for Optimism. This then requires fully qualified syntax to differentiate.

Solution

Bring back OpTransactionRequest

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Copy Markdown
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

pending @klkvr

@yash-atreya for context, it turns out that unifying the type leads to some ambiguity, and makes the transactionBuilder api worse when operating on the request type because then all functions require a network hint...

@klkvr klkvr added this pull request to the merge queue Jun 25, 2025
Merged via the queue into main with commit 3f6f29c Jun 25, 2025
21 checks passed
@klkvr klkvr deleted the rpc-op-tx-req branch June 25, 2025 17:39
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking Jun 25, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
…ionRequest` of `Optimism` (alloy-rs/op-alloy#557)

## Motivation

The change #525 introduced ambiguity of
`alloy_network::TransactionBuilder` implementation for
`TransactionRequest`, being implemented twice once for `Ethereum` and
once for `Optimism`. This then requires fully qualified syntax to
differentiate.

## Solution

Bring back `OpTransactionRequest`

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
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.

3 participants