Ledger key path rework (#8453) (#8457)

automerge
This commit is contained in:
mergify[bot]
2020-02-25 18:00:53 -08:00
committed by GitHub
parent 8f5928b7c7
commit cc3352ff06
7 changed files with 186 additions and 67 deletions

View File

@@ -39,7 +39,7 @@ pub fn parse_keypair_path(path: &str) -> KeypairUrl {
} else if path == ASK_KEYWORD {
KeypairUrl::Ask
} else if path.starts_with("usb://") {
KeypairUrl::Usb(path.split_at(6).1.to_string())
KeypairUrl::Usb(path.to_string())
} else if let Ok(pubkey) = Pubkey::from_str(path) {
KeypairUrl::Pubkey(pubkey)
} else {