Skip to content

Commit

Permalink
get_current_address
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2 committed Aug 21, 2024
1 parent a7c3ac6 commit 34508f2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions zcash_client_memory/src/mem_wallet/wallet_read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,20 @@ impl WalletRead for MemoryWalletDb {
&self,
account: Self::AccountId,
) -> Result<Option<UnifiedAddress>, Self::Error> {
todo!()
// self.accounts
// .get(*account as usize)
// .map(|account| {
// account
// .ufvk()
// .default_address(
// UnifiedAddressRequest::all()
// .expect("At least one protocol should be enabled."),
// )
// .map(|(addr, _)| addr)
// })
// .transpose()
// .map_err(|e| e.into())
self.accounts
.get(*account as usize)
.map(|account| {
account
.ufvk()
.unwrap()
.default_address(
UnifiedAddressRequest::all()
.expect("At least one protocol should be enabled."),
)
.map(|(addr, _)| addr)
})
.transpose()
.map_err(|e| e.into())
}

fn get_account_birthday(&self, _account: Self::AccountId) -> Result<BlockHeight, Self::Error> {
Expand Down

0 comments on commit 34508f2

Please sign in to comment.