Add checkmark (#8781)

automerge
This commit is contained in:
Tyera Eulberg 2020-03-10 18:28:50 -06:00 committed by GitHub
parent 307d023b2e
commit f3ed00e28e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

1
Cargo.lock generated
View File

@ -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)",

View File

@ -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"

View File

@ -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()