Skip to content

Commit f6681f4

Browse files
PatStilesuri-99
andcommitted
fix(cli): Use ethers as max_fee unit in submit to aligned (#1555)
Co-authored-by: Urix <[email protected]>
1 parent 886953e commit f6681f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

batcher/aligned/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,13 +516,13 @@ async fn main() -> Result<(), AlignedError> {
516516
}
517517
DepositToBatcher(deposit_to_batcher_args) => {
518518
if !deposit_to_batcher_args.amount.ends_with("ether") {
519-
error!("Amount should be in the format XX.XXether");
519+
error!("`amount` should be in the format XX.XXether");
520520
return Ok(());
521521
}
522522

523-
let amount = deposit_to_batcher_args.amount.replace("ether", "");
523+
let amount_ether = deposit_to_batcher_args.amount.replace("ether", "");
524524

525-
let amount_ether = parse_ether(&amount).map_err(|e| {
525+
let amount_wei = parse_ether(&amount_ether).map_err(|e| {
526526
SubmitError::EthereumProviderError(format!("Error while parsing amount: {}", e))
527527
})?;
528528

@@ -553,7 +553,7 @@ async fn main() -> Result<(), AlignedError> {
553553

554554
let client = SignerMiddleware::new(eth_rpc_provider.clone(), wallet.clone());
555555

556-
match deposit_to_aligned(amount_ether, client, deposit_to_batcher_args.network.into())
556+
match deposit_to_aligned(amount_wei, client, deposit_to_batcher_args.network.into())
557557
.await
558558
{
559559
Ok(receipt) => {

0 commit comments

Comments
 (0)