@@ -396,7 +396,7 @@ async fn offline_hd_keys_export_internal(
396
396
( address, priv_key)
397
397
} ,
398
398
Some ( PrefixValues :: Tendermint { account_prefix } ) => {
399
- let address = tendermint:: account_id_from_pubkey_hex ( & account_prefix, & pubkey)
399
+ let address = tendermint:: account_id_from_pubkey_hex ( account_prefix, & pubkey)
400
400
. map_err ( |e| OfflineKeysError :: Internal ( e. to_string ( ) ) ) ?
401
401
. to_string ( ) ;
402
402
@@ -591,7 +591,7 @@ mod tests {
591
591
592
592
CryptoCtx :: init_with_global_hd_account ( ctx. clone ( ) , TEST_MNEMONIC ) . unwrap ( ) ;
593
593
594
- let req = GetPrivateKeysRequest {
594
+ let _req = GetPrivateKeysRequest {
595
595
coins : vec ! [ "BTC" . to_string( ) ] ,
596
596
mode : Some ( KeyExportMode :: Hd ) ,
597
597
start_index : Some ( 0 ) ,
@@ -615,7 +615,7 @@ mod tests {
615
615
"L5kmC8cqWodyjm2JUQNfRbmyZeJMJMeYH4WJGUSVcdnD9X6aAs8Z" ,
616
616
] ;
617
617
618
- let btc_conf = json ! ( {
618
+ let _btc_conf = json ! ( {
619
619
"coin" : "BTC" ,
620
620
"protocol" : {
621
621
"type" : "UTXO"
@@ -661,7 +661,7 @@ mod tests {
661
661
662
662
CryptoCtx :: init_with_global_hd_account ( ctx. clone ( ) , TEST_MNEMONIC ) . unwrap ( ) ;
663
663
664
- let req = GetPrivateKeysRequest {
664
+ let _req = GetPrivateKeysRequest {
665
665
coins : vec ! [ "BTC-segwit" . to_string( ) ] ,
666
666
mode : Some ( KeyExportMode :: Hd ) ,
667
667
start_index : Some ( 0 ) ,
@@ -720,7 +720,7 @@ mod tests {
720
720
721
721
CryptoCtx :: init_with_global_hd_account ( ctx. clone ( ) , TEST_MNEMONIC ) . unwrap ( ) ;
722
722
723
- let req = GetPrivateKeysRequest {
723
+ let _req = GetPrivateKeysRequest {
724
724
coins : vec ! [ "ETH" . to_string( ) ] ,
725
725
mode : Some ( KeyExportMode :: Hd ) ,
726
726
start_index : Some ( 0 ) ,
@@ -779,7 +779,7 @@ mod tests {
779
779
780
780
CryptoCtx :: init_with_global_hd_account ( ctx. clone ( ) , TEST_MNEMONIC ) . unwrap ( ) ;
781
781
782
- let req = GetPrivateKeysRequest {
782
+ let _req = GetPrivateKeysRequest {
783
783
coins : vec ! [ "ATOM" . to_string( ) ] ,
784
784
mode : Some ( KeyExportMode :: Hd ) ,
785
785
start_index : Some ( 0 ) ,
@@ -792,12 +792,12 @@ mod tests {
792
792
"cosmos1cecqkvtwn0vyr730yq3hawrl8rztvchz6kadk8" ,
793
793
"cosmos1c27v3agv745fhnjve8ch754rmzswuc7guglt76" ,
794
794
] ;
795
- let expected_pubkeys = [
795
+ let _expected_pubkeys = [
796
796
"cosmospub1addwnpepq09wmcqe8qvcmyvgre8g07q9z42rz6y7uguz5dxqvhw0tdrqa38csd8wlfa" ,
797
797
"cosmospub1addwnpepq0uy8zghd8q8p5wjvz84catqgwuwem45s5rpvd9syq44jz2jmyqfvp049kz" ,
798
798
"cosmospub1add" , // Truncated in the original test vectors
799
799
] ;
800
- let expected_privkeys_base64 = [
800
+ let _expected_privkeys_base64 = [
801
801
"Nbfdi2ZHb+2W41DNJPaHxAi6oHcJ4lFLtBZkATGAB8M=" ,
802
802
"8FJrDCXtcLl6OgjqF/l5QQvUYYpjwGn+F3q3pBp3e94=" ,
803
803
] ;
0 commit comments