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