@@ -1093,9 +1093,8 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
10931093 }
10941094 } ;
10951095
1096- let mut wallet = new_persisted_wallet ( network, & mut persister, & wallet_opts) ?;
1097- let blockchain_client =
1098- new_blockchain_client ( & wallet_opts, & wallet, database_path) ?;
1096+ let mut wallet = new_persisted_wallet ( network, & mut persister, wallet_opts) ?;
1097+ let blockchain_client = new_blockchain_client ( wallet_opts, & wallet, database_path) ?;
10991098
11001099 let result = handle_online_wallet_subcommand (
11011100 & mut wallet,
@@ -1108,10 +1107,10 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
11081107 } ;
11091108 #[ cfg( not( any( feature = "sqlite" , feature = "redb" ) ) ) ]
11101109 let result = {
1111- let wallet = new_wallet ( network, & wallet_opts) ?;
1110+ let wallet = new_wallet ( network, wallet_opts) ?;
11121111 let blockchain_client =
1113- crate :: utils:: new_blockchain_client ( & wallet_opts, & wallet, database_path) ?;
1114- let mut wallet = new_wallet ( network, & wallet_opts) ?;
1112+ crate :: utils:: new_blockchain_client ( wallet_opts, & wallet, database_path) ?;
1113+ let mut wallet = new_wallet ( network, wallet_opts) ?;
11151114 handle_online_wallet_subcommand ( & mut wallet, blockchain_client, online_subcommand)
11161115 . await ?
11171116 } ;
@@ -1162,10 +1161,10 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
11621161 } ;
11631162 #[ cfg( not( any( feature = "sqlite" , feature = "redb" ) ) ) ]
11641163 let result = {
1165- let mut wallet = new_wallet ( network, & wallet_opts) ?;
1164+ let mut wallet = new_wallet ( network, wallet_opts) ?;
11661165 handle_offline_wallet_subcommand (
11671166 & mut wallet,
1168- & wallet_opts,
1167+ wallet_opts,
11691168 & cli_opts,
11701169 offline_subcommand. clone ( ) ,
11711170 ) ?
0 commit comments