Skip to content

Commit

Permalink
fixed sync trait
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-Pepper committed Dec 3, 2024
1 parent 81eeadb commit 3d0a36e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zingolib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pub struct LightWallet {

/// Transparent addresses
#[cfg(feature = "sync")]
transparent_addresses: BTreeMap<TransparentAddressId, String>,
pub transparent_addresses: BTreeMap<TransparentAddressId, String>,
}

impl LightWallet {
Expand Down
4 changes: 2 additions & 2 deletions zingolib/src/wallet/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ impl SyncWallet for LightWallet {
fn get_transparent_addresses(
&self,
) -> Result<&BTreeMap<TransparentAddressId, String>, Self::Error> {
Ok(self.transparent_addresses())
Ok(&self.transparent_addresses)
}

fn get_transparent_addresses_mut(
&mut self,
) -> Result<&mut BTreeMap<TransparentAddressId, String>, Self::Error> {
Ok(self.transparent_addresses_mut())
Ok(&mut self.transparent_addresses)
}
}

Expand Down

0 comments on commit 3d0a36e

Please sign in to comment.