-
Notifications
You must be signed in to change notification settings - Fork 249
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
Conversation
There was a problem hiding this 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
|
network
): AnyNetworkWallet
network
): impl Network<AnyNetwork>
network
): impl Network<AnyNetwork>network
): impl NetworkWallet<AnyNetwork>
Motivation
In #1460,
AnyTxEnvelope
andAnyTypedTransaction
were introduced. These are now being used inAnyNetwork
.This made initializing an
AnyNetwork
provider with theEthereumWallet
wallet filler incompatible as it signsTypedTransaction
and returns theTxEnvelope
.Solution
Implmenent
NetworkWallet<AnyNetwork>
forEthereumWallet
that signAnyTypedTransactions
PR Checklist