File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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) => {
You can’t perform that action at this time.
0 commit comments