Skip to content

Commit

Permalink
wallet: impl Deref Wallet to WalletDescr
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jul 30, 2023
1 parent 421498b commit 64f2e1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions std/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ pub struct Wallet<D: DeriveSpk, L2: Default = ()> {
layer2: L2,
}

impl<D: DeriveSpk, L2: Default> Deref for Wallet<D, L2> {
type Target = WalletDescr<D>;

fn deref(&self) -> &Self::Target { &self.descr }
}

impl<D: DeriveSpk, L2: Default> Wallet<D, L2> {
pub fn new(descr: D, network: Chain) -> Self {
Wallet {
Expand Down

0 comments on commit 64f2e1a

Please sign in to comment.