File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -995,7 +995,7 @@ impl Batcher {
995995 ) {
996996 let replacement_max_fee = nonced_verification_data. max_fee ;
997997 let nonce = nonced_verification_data. nonce ;
998- let Some ( replacement_entry ) = batch_state_lock. get_entry ( addr, nonce) else {
998+ let Some ( entry_to_replace ) = batch_state_lock. get_entry ( addr, nonce) else {
999999 std:: mem:: drop ( batch_state_lock) ;
10001000 warn ! ( "Invalid nonce for address {addr}. Queue entry with nonce {nonce} not found" ) ;
10011001 send_message (
@@ -1008,7 +1008,7 @@ impl Batcher {
10081008 } ;
10091009
10101010 // Validate that the max fee is at least higher or equal to the original fee + a [`min_bump_percentage`]
1011- let original_max_fee = replacement_entry . nonced_verification_data . max_fee ;
1011+ let original_max_fee = entry_to_replace . nonced_verification_data . max_fee ;
10121012 let min_bump =
10131013 original_max_fee + ( original_max_fee * self . min_bump_percentage ) / U256 :: from ( 100 ) ;
10141014
@@ -1028,7 +1028,7 @@ impl Batcher {
10281028 info ! ( "Replacing message for address {addr} with nonce {nonce} and max fee {replacement_max_fee}" ) ;
10291029
10301030 // The replacement entry is built from the old entry and validated for then to be replaced
1031- let mut replacement_entry = replacement_entry . clone ( ) ;
1031+ let mut replacement_entry = entry_to_replace . clone ( ) ;
10321032 replacement_entry. signature = signature;
10331033 replacement_entry. verification_data_commitment =
10341034 nonced_verification_data. verification_data . clone ( ) . into ( ) ;
You can’t perform that action at this time.
0 commit comments