@@ -2,14 +2,10 @@ use anyhow::{bail, Context as _, Result};
22use inquire:: { Confirm , MultiSelect } ;
33use pallas:: ledger:: addresses:: Address ;
44use serde_json:: { json, Value } ;
5- use std:: {
6- collections:: { BTreeMap , HashMap } ,
7- path:: Path ,
8- } ;
5+ use std:: path:: Path ;
96
107use tx3_sdk:: {
11- core:: ArgMap ,
12- tii:: { Invocation , ParamMap , ParamType } ,
8+ tii:: { Invocation , ParamType } ,
139 trp:: TxEnvelope ,
1410} ;
1511
@@ -74,7 +70,7 @@ fn inquire_custom_address(param_key: &str) -> Result<Address> {
7470 . with_help_message ( "Enter a bech32 address" )
7571 . prompt ( ) ?;
7672
77- Ok ( Address :: from_bech32 ( & value) . context ( "invalid bech32 address" ) ? )
73+ Address :: from_bech32 ( & value) . context ( "invalid bech32 address" )
7874}
7975
8076fn inquire_address ( ctx : & crate :: Context , provider : & Provider , param_key : & str ) -> Result < Address > {
@@ -274,8 +270,7 @@ mod tests {
274270 #[ test]
275271 fn invoke_encodes_diverse_args_into_resolve_request ( ) {
276272 let tii = format ! ( "{}/tests/fixtures/invoke.tii" , env!( "CARGO_MANIFEST_DIR" ) ) ;
277- let mut invocation =
278- prepare_invocation ( Path :: new ( & tii) , Some ( "transfer" ) , None ) . unwrap ( ) ;
273+ let mut invocation = prepare_invocation ( Path :: new ( & tii) , Some ( "transfer" ) , None ) . unwrap ( ) ;
279274
280275 let args_json = r#"{
281276 "quantity": 2000000,
0 commit comments