@@ -7,10 +7,9 @@ use shlex::split;
77use std:: fmt:: Debug ;
88use std:: hash:: Hash ;
99use std:: process:: Command ;
10- use stellar_cli:: commands:: NetworkRunnable ;
11- use stellar_cli:: print:: Print ;
12- use stellar_cli:: utils:: contract_hash;
13- use stellar_cli:: { commands as cli, CommandParser } ;
10+ use stellar_cli:: {
11+ commands as cli, commands:: NetworkRunnable , print:: Print , utils:: contract_hash, CommandParser ,
12+ } ;
1413use stellar_strkey:: { self , Contract } ;
1514use stellar_xdr:: curr:: Error as xdrError;
1615
@@ -148,7 +147,7 @@ impl Args {
148147 Ok ( ( ) )
149148 }
150149
151- fn stellar_scaffold_env ( self , default : ScaffoldEnv ) -> String {
150+ fn stellar_scaffold_env ( & self , default : ScaffoldEnv ) -> String {
152151 self . env . unwrap_or ( default) . to_string ( ) . to_lowercase ( )
153152 }
154153
@@ -158,7 +157,7 @@ impl Args {
158157 /// We could set `STELLAR_NETWORK` instead, but when importing contracts, we want to hard-code
159158 /// the network passphrase. So if given a network name, we use soroban-cli to fetch the RPC url
160159 /// & passphrase for that named network, and still set the environment variables.
161- fn add_network_to_env ( self , network : & env_toml:: Network ) -> Result < ( ) , Error > {
160+ fn add_network_to_env ( & self , network : & env_toml:: Network ) -> Result < ( ) , Error > {
162161 let printer = self . printer . as_ref ( ) . expect ( "printer must be set" ) ;
163162 match & network {
164163 Network {
@@ -502,7 +501,7 @@ export default new Client.Client({{
502501 }
503502
504503 async fn handle_contracts (
505- self ,
504+ & self ,
506505 contracts : Option < & IndexMap < Box < str > , env_toml:: Contract > > ,
507506 package_names : Vec < String > ,
508507 network : & Network ,
0 commit comments