Skip to content

Commit

Permalink
making device mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Corbin committed Sep 26, 2023
1 parent d5b663a commit 04ad5eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions full-service/src/service/hardware_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ async fn get_device_handle() -> Result<DeviceHandle<LedgerHandle>, HardwareWalle
}

pub async fn get_view_only_account_keys() -> Result<ViewAccount, HardwareWalletServiceError> {
let device_handle = get_device_handle().await?;
let mut device_handle = get_device_handle().await?;
Ok(device_handle.account_keys(0).await?)
}

pub async fn get_view_only_subaddress_keys(
subaddress_index: u64,
) -> Result<ViewSubaddress, HardwareWalletServiceError> {
let device_handle = get_device_handle().await?;
let mut device_handle = get_device_handle().await?;
Ok(device_handle.subaddress_keys(0, subaddress_index).await?)
}

Expand Down

0 comments on commit 04ad5eb

Please sign in to comment.