Skip to content

Commit e9752c5

Browse files
committed
refactor: rename payment filename for deposit in agg mode cli commands
1 parent 747a730 commit e9752c5

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

aggregation_mode/cli/src/commands/payment.rs renamed to aggregation_mode/cli/src/commands/deposit.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ pub struct SendPaymentArgs {
2424
}
2525

2626
pub 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>() {

aggregation_mode/cli/src/commands/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use crate::commands::{payment::SendPaymentArgs, submit::SubmitCommand, verify::VerifyOnChainArgs};
1+
use crate::commands::{deposit::SendPaymentArgs, submit::SubmitCommand, verify::VerifyOnChainArgs};
22
use clap::{Parser, Subcommand};
33

44
mod helpers;
5-
pub mod payment;
5+
pub mod deposit;
66
pub mod submit;
77
pub mod verify;
88

aggregation_mode/cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)