File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ pub struct SendPaymentArgs {
2424}
2525
2626pub async fn run ( args : SendPaymentArgs ) {
27- tracing:: info!( "Sending payment to aggregation mode payment service on {:?}" , args. network) ;
27+ tracing:: info!(
28+ "Sending payment to aggregation mode payment service on {:?}" ,
29+ args. network
30+ ) ;
2831
2932 let signer = match LocalSigner :: from_str ( args. private_key . trim ( ) ) {
3033 Ok ( s) => s,
@@ -37,9 +40,7 @@ pub async fn run(args: SendPaymentArgs) {
3740 let wallet = EthereumWallet :: from ( signer. clone ( ) ) ;
3841
3942 let rpc_url = args. rpc_url . parse ( ) . expect ( "Invalid RPC URL" ) ;
40- let provider = ProviderBuilder :: new ( )
41- . wallet ( wallet)
42- . connect_http ( rpc_url) ;
43+ let provider = ProviderBuilder :: new ( ) . wallet ( wallet) . connect_http ( rpc_url) ;
4344
4445 let payment_service_address_str = args. network . aggregation_mode_payment_service_address ( ) ;
4546 let payment_service_address = match payment_service_address_str. parse :: < Address > ( ) {
Original file line number Diff line number Diff line change 1- use crate :: commands:: { payment :: SendPaymentArgs , submit:: SubmitCommand , verify:: VerifyOnChainArgs } ;
1+ use crate :: commands:: { deposit :: SendPaymentArgs , submit:: SubmitCommand , verify:: VerifyOnChainArgs } ;
22use clap:: { Parser , Subcommand } ;
33
44mod helpers;
5- pub mod payment ;
5+ pub mod deposit ;
66pub mod submit;
77pub mod verify;
88
Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ async fn main() {
1515 SubmitCommand :: SP1 ( args) => commands:: submit:: run ( args) . await ,
1616 } ,
1717 Command :: VerifyOnChain ( args) => commands:: verify:: run ( args) . await ,
18- Command :: Deposit ( args) => commands:: payment :: run ( args) . await ,
18+ Command :: Deposit ( args) => commands:: deposit :: run ( args) . await ,
1919 } ;
2020}
You can’t perform that action at this time.
0 commit comments