parent
307d023b2e
commit
f3ed00e28e
|
@ -4370,6 +4370,7 @@ name = "solana-remote-wallet"
|
|||
version = "1.1.0"
|
||||
dependencies = [
|
||||
"base32 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"console 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"dialoguer 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"hidapi 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -10,6 +10,7 @@ homepage = "https://solana.com/"
|
|||
|
||||
[dependencies]
|
||||
base32 = "0.4.0"
|
||||
console = "0.9.2"
|
||||
dialoguer = "0.5.0"
|
||||
hidapi = { version = "1.2.1", default-features = false }
|
||||
log = "0.4.8"
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
use crate::remote_wallet::{
|
||||
DerivationPath, RemoteWallet, RemoteWalletError, RemoteWalletInfo, RemoteWalletManager,
|
||||
};
|
||||
use console::Emoji;
|
||||
use dialoguer::{theme::ColorfulTheme, Select};
|
||||
use log::*;
|
||||
use semver::Version as FirmwareVersion;
|
||||
use solana_sdk::{pubkey::Pubkey, signature::Signature};
|
||||
use std::{cmp::min, fmt, sync::Arc};
|
||||
|
||||
static CHECK_MARK: Emoji = Emoji("✅ ", "");
|
||||
|
||||
const HARDENED_BIT: u32 = 1 << 31;
|
||||
|
||||
const APDU_TAG: u8 = 0x05;
|
||||
|
@ -230,7 +233,7 @@ impl LedgerWallet {
|
|||
if p1 == P1_CONFIRM && is_last_part(p2) {
|
||||
println!("Waiting for remote wallet to approve...");
|
||||
let result = self.read()?;
|
||||
println!("Approved");
|
||||
println!("{}Approved", CHECK_MARK);
|
||||
Ok(result)
|
||||
} else {
|
||||
self.read()
|
||||
|
|
Loading…
Reference in New Issue