Skip to content

Commit a6941d5

Browse files
committed
Change variable name
1 parent 1032f18 commit a6941d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • batcher/aligned-batcher/src

batcher/aligned-batcher/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ impl Batcher {
532532
Ok(())
533533
}
534534

535-
/// Returns the address that will be used for non-paying users.
535+
/// Returns the Aligned-funded address that will be used to pay for proofs when users don't need to pay themselves.
536536
/// This function assumes that the non-paying configuration is set.
537-
fn replacement_address(&self) -> Address {
537+
fn aligned_payment_address(&self) -> Address {
538538
self.non_paying_config
539539
.as_ref()
540540
.map(|config| config.replacement.address())
@@ -592,7 +592,7 @@ impl Batcher {
592592
} else {
593593
info!("Generating non-paying data");
594594
// If the user is not required to pay, substitute their address with a pre-funded Aligned address
595-
addr = self.replacement_address();
595+
addr = self.aligned_payment_address();
596596
// Substitute the max_fee to a high enough value to cover the gas cost of the proof
597597
let mut aux_verification_data = client_msg.verification_data.clone();
598598
aux_verification_data.max_fee = (DEFAULT_MAX_FEE_PER_PROOF * 100).into(); // 2_000 gas per proof * 100 gwei gas price (upper bound) * 100 to make sure it is enough

0 commit comments

Comments
 (0)