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

fix(network): impl NetworkWallet<AnyNetwork> #1631

Merged
merged 5 commits into from
Nov 7, 2024

Conversation

yash-atreya
Copy link
Member

@yash-atreya yash-atreya commented Nov 7, 2024

Motivation

In #1460, AnyTxEnvelope and AnyTypedTransaction were introduced. These are now being used in AnyNetwork.

This made initializing an AnyNetwork provider with the EthereumWallet wallet filler incompatible as it signs TypedTransaction and returns the TxEnvelope.

Solution

Implmenent NetworkWallet<AnyNetwork> for EthereumWallet that sign AnyTypedTransactions

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

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

I don't think we need a separate type here given that signable transactions set is still the same

In op-alloy I've done this https://github.com/alloy-rs/op-alloy/blob/01f11b4747f3b533f947be19188099cb21182a1a/crates/network/src/lib.rs#L198 which allows to reuse EthereumWallet for OP as well

@yash-atreya
Copy link
Member Author

I don't think we need a separate type here given that signable transactions set is still the same

In op-alloy I've done this https://github.com/alloy-rs/op-alloy/blob/01f11b4747f3b533f947be19188099cb21182a1a/crates/network/src/lib.rs#L198 which allows to reuse EthereumWallet for OP as well

@klkvr addressed in 55144c2

@yash-atreya yash-atreya requested a review from klkvr November 7, 2024 17:13
@yash-atreya yash-atreya changed the title feat(network): AnyNetworkWallet fix(network): impl Network<AnyNetwork> Nov 7, 2024
@yash-atreya yash-atreya changed the title fix(network): impl Network<AnyNetwork> fix(network): impl NetworkWallet<AnyNetwork> Nov 7, 2024
yash-atreya and others added 2 commits November 7, 2024 23:10
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
@yash-atreya yash-atreya merged commit 0245a4e into main Nov 7, 2024
26 checks passed
@yash-atreya yash-atreya deleted the yash/any-network-wallet branch November 7, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants