Skip to content

feat(rpc): Convert into RPC transaction from generic OpTransaction#550

Merged
mattsse merged 2 commits intomainfrom
op-rpc-from-generic-tx
Jun 16, 2025
Merged

feat(rpc): Convert into RPC transaction from generic OpTransaction#550
mattsse merged 2 commits intomainfrom
op-rpc-from-generic-tx

Conversation

@RomanHodulak
Copy link
Copy Markdown
Contributor

Follow-up on #549

Motivation

The RPC transaction object has a dedicated conversion function that accepts OpTxEnvelope struct. But it cannot be used with a transaction that is not OpTxEnvelope but implements OpTransaction.

Solution

Since OpTransaction provides all the needed functionality for the conversion, replace the OpTxEnvelope type with a generic type.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mattsse mattsse added this pull request to the merge queue Jun 16, 2025
Merged via the queue into main with commit 3c7046e Jun 16, 2025
21 checks passed
@mattsse mattsse deleted the op-rpc-from-generic-tx branch June 16, 2025 19:37
@github-project-automation github-project-automation Bot moved this from In Review to Done in Project Tracking Jun 16, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
…lloy-rs/op-alloy#550)

Follow-up on #549 

## Motivation

The RPC transaction object has a dedicated conversion function that
accepts `OpTxEnvelope` struct. But it cannot be used with a transaction
that is not `OpTxEnvelope` but implements `OpTransaction`.

## Solution

Since `OpTransaction` provides all the needed functionality for the
conversion, replace the `OpTxEnvelope` type with a generic type.

## 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.

2 participants