|
|
@@ -9,10 +9,9 @@ use {
|
|
|
log::*,
|
|
|
parking_lot::RwLock,
|
|
|
solana_derivation_path::{DerivationPath, DerivationPathError},
|
|
|
- solana_sdk::{
|
|
|
- pubkey::Pubkey,
|
|
|
- signature::{Signature, SignerError},
|
|
|
- },
|
|
|
+ solana_pubkey::Pubkey,
|
|
|
+ solana_signature::Signature,
|
|
|
+ solana_signer::SignerError,
|
|
|
std::{
|
|
|
rc::Rc,
|
|
|
time::{Duration, Instant},
|
|
|
@@ -336,7 +335,7 @@ mod tests {
|
|
|
|
|
|
#[test]
|
|
|
fn test_parse_locator() {
|
|
|
- let pubkey = solana_sdk::pubkey::new_rand();
|
|
|
+ let pubkey = solana_pubkey::new_rand();
|
|
|
let locator = Locator {
|
|
|
manufacturer: Manufacturer::Ledger,
|
|
|
pubkey: Some(pubkey),
|
|
|
@@ -369,7 +368,7 @@ mod tests {
|
|
|
|
|
|
#[test]
|
|
|
fn test_remote_wallet_info_matches() {
|
|
|
- let pubkey = solana_sdk::pubkey::new_rand();
|
|
|
+ let pubkey = solana_pubkey::new_rand();
|
|
|
let info = RemoteWalletInfo {
|
|
|
manufacturer: Manufacturer::Ledger,
|
|
|
model: "Nano S".to_string(),
|
|
|
@@ -391,7 +390,7 @@ mod tests {
|
|
|
assert!(info.matches(&test_info));
|
|
|
test_info.host_device_path = "/host/device/path".to_string();
|
|
|
assert!(info.matches(&test_info));
|
|
|
- let another_pubkey = solana_sdk::pubkey::new_rand();
|
|
|
+ let another_pubkey = solana_pubkey::new_rand();
|
|
|
test_info.pubkey = another_pubkey;
|
|
|
assert!(!info.matches(&test_info));
|
|
|
test_info.pubkey = pubkey;
|
|
|
@@ -400,7 +399,7 @@ mod tests {
|
|
|
|
|
|
#[test]
|
|
|
fn test_get_pretty_path() {
|
|
|
- let pubkey = solana_sdk::pubkey::new_rand();
|
|
|
+ let pubkey = solana_pubkey::new_rand();
|
|
|
let pubkey_str = pubkey.to_string();
|
|
|
let remote_wallet_info = RemoteWalletInfo {
|
|
|
model: "nano-s".to_string(),
|