@@ -93,25 +93,25 @@ fn running_cmd() -> String {
9393 format ! ( "{} --" , args. join( " " ) )
9494}
9595
96- pub async fn build_host_function_parameters (
96+ pub fn build_host_function_parameters (
9797 contract_id : & stellar_strkey:: Contract ,
9898 slop : & [ OsString ] ,
9999 spec_entries : & [ ScSpecEntry ] ,
100100 config : & config:: Args ,
101101) -> Result < HostFunctionParameters , Error > {
102- build_host_function_parameters_with_filter ( contract_id, slop, spec_entries, config, true ) . await
102+ build_host_function_parameters_with_filter ( contract_id, slop, spec_entries, config, true )
103103}
104104
105- pub async fn build_constructor_parameters (
105+ pub fn build_constructor_parameters (
106106 contract_id : & stellar_strkey:: Contract ,
107107 slop : & [ OsString ] ,
108108 spec_entries : & [ ScSpecEntry ] ,
109109 config : & config:: Args ,
110110) -> Result < HostFunctionParameters , Error > {
111- build_host_function_parameters_with_filter ( contract_id, slop, spec_entries, config, false ) . await
111+ build_host_function_parameters_with_filter ( contract_id, slop, spec_entries, config, false )
112112}
113113
114- async fn build_host_function_parameters_with_filter (
114+ fn build_host_function_parameters_with_filter (
115115 contract_id : & stellar_strkey:: Contract ,
116116 slop : & [ OsString ] ,
117117 spec_entries : & [ ScSpecEntry ] ,
@@ -122,7 +122,7 @@ async fn build_host_function_parameters_with_filter(
122122 let cmd = build_clap_command ( & spec, filter_constructor) ?;
123123 let ( function, matches_) = parse_command_matches ( cmd, slop) ?;
124124 let func = get_function_spec ( & spec, & function) ?;
125- let ( parsed_args, signers) = parse_function_arguments ( & func, & matches_, & spec, config) . await ?;
125+ let ( parsed_args, signers) = parse_function_arguments ( & func, & matches_, & spec, config) ?;
126126 let invoke_args = build_invoke_contract_args ( contract_id, & function, parsed_args) ?;
127127
128128 Ok ( ( function, spec, invoke_args, signers) )
@@ -187,7 +187,7 @@ fn get_function_spec(spec: &Spec, function: &str) -> Result<ScSpecFunctionV0, Er
187187 } )
188188}
189189
190- async fn parse_function_arguments (
190+ fn parse_function_arguments (
191191 func : & ScSpecFunctionV0 ,
192192 matches_ : & clap:: ArgMatches ,
193193 spec : & Spec ,
@@ -197,13 +197,13 @@ async fn parse_function_arguments(
197197 let mut signers = Vec :: < Signer > :: new ( ) ;
198198
199199 for i in func. inputs . iter ( ) {
200- parse_single_argument ( i, matches_, spec, config, & mut signers, & mut parsed_args) . await ?;
200+ parse_single_argument ( i, matches_, spec, config, & mut signers, & mut parsed_args) ?;
201201 }
202202
203203 Ok ( ( parsed_args, signers) )
204204}
205205
206- async fn parse_single_argument (
206+ fn parse_single_argument (
207207 input : & stellar_xdr:: curr:: ScSpecFunctionInputV0 ,
208208 matches_ : & clap:: ArgMatches ,
209209 spec : & Spec ,
@@ -234,7 +234,7 @@ async fn parse_single_argument(
234234 ScSpecTypeDef :: Address | ScSpecTypeDef :: MuxedAddress
235235 ) {
236236 let trimmed_s = s. trim_matches ( '"' ) ;
237- if let Some ( signer) = resolve_signer ( trimmed_s, config) . await {
237+ if let Some ( signer) = resolve_signer ( trimmed_s, config) {
238238 signers. push ( signer) ;
239239 }
240240 }
@@ -464,10 +464,10 @@ fn resolve_address(addr_or_alias: &str, config: &config::Args) -> Result<String,
464464 Ok ( account)
465465}
466466
467- async fn resolve_signer ( addr_or_alias : & str , config : & config:: Args ) -> Option < Signer > {
467+ fn resolve_signer ( addr_or_alias : & str , config : & config:: Args ) -> Option < Signer > {
468468 let secret = config. locator . get_secret_key ( addr_or_alias) . ok ( ) ?;
469469 let print = Print :: new ( false ) ;
470- let signer = secret. signer ( config. hd_path ( ) , print) . await . ok ( ) ?;
470+ let signer = secret. signer ( config. hd_path ( ) , print) . ok ( ) ?;
471471 Some ( signer)
472472}
473473
0 commit comments