Make it easier to configure a wallet in a provider #2094
Labels
c-network
Pertaining to the network crate
c-provider
c-signers
Pertaining to the signers such as local, aws, gcp etc.
needs design
P-high
High Priority
this currently requires
alloy/crates/provider/src/builder.rs
Lines 253 to 258 in 38060a6
which is usually initialized like this:
alloy/crates/provider/src/provider/trait.rs
Lines 1837 to 1839 in 38060a6
it would be easier if this could be directly initialized which a Privatekeysigner.
to make this more ergonomic, we can introduce a helper trait that serves as a specialization for PrivateKeysigner so we can accept something like impl IntoWallet or similar.
The text was updated successfully, but these errors were encountered: