File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1087,6 +1087,7 @@ mod test {
1087
1087
use crate :: ProxyOpts ;
1088
1088
use crate :: { handle_key_subcommand, CliSubCommand , KeySubCommand , WalletSubCommand } ;
1089
1089
1090
+ use bdk:: bitcoin:: util:: bip32:: { DerivationPath , ExtendedPrivKey } ;
1090
1091
use bdk:: bitcoin:: { Address , Network , OutPoint } ;
1091
1092
use bdk:: miniscript:: bitcoin:: network:: constants:: Network :: Testnet ;
1092
1093
use std:: str:: FromStr ;
@@ -1518,9 +1519,8 @@ mod test {
1518
1519
fn test_key_derive ( ) {
1519
1520
let network = Testnet ;
1520
1521
let key_generate_cmd = KeySubCommand :: Derive {
1521
- xprv : "tprv8ZgxMBicQKsPfQjJy8ge2cvBfDjLxJSkvNLVQiw7BQ5gTjKadG2rrcQB5zjcdaaUTz5EDNJaS77q4DzjqjogQBfMsaXFFNP3UqoBnwt2kyT"
1522
- . to_string ( ) ,
1523
- path : "m/84'/1'/0'/0" . to_string ( ) ,
1522
+ xprv : ExtendedPrivKey :: from_str ( "tprv8ZgxMBicQKsPfQjJy8ge2cvBfDjLxJSkvNLVQiw7BQ5gTjKadG2rrcQB5zjcdaaUTz5EDNJaS77q4DzjqjogQBfMsaXFFNP3UqoBnwt2kyT" ) . unwrap ( ) ,
1523
+ path : DerivationPath :: from_str ( "m/84'/1'/0'/0" ) . unwrap ( ) ,
1524
1524
} ;
1525
1525
1526
1526
let result = handle_key_subcommand ( network, key_generate_cmd) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments