Skip to content

Commit 23a941a

Browse files
committed
Fix conflicts
2 parents 2f8df91 + f89d7c4 commit 23a941a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

batcher/aligned-batcher/src/types/batch_state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ impl BatchState {
230230
pub(crate) fn update_user_state_on_entry_removal(&mut self, removed_entry: &BatchQueueEntry) {
231231
let addr = removed_entry.sender;
232232

233-
let last_max_fee_limit = match self
233+
let new_last_max_fee_limit = match self
234234
.batch_queue
235235
.iter()
236236
.filter(|(e, _)| e.sender == addr)
@@ -246,8 +246,8 @@ impl BatchState {
246246
if let Entry::Occupied(mut user_state) = self.user_states.entry(addr) {
247247
user_state.get_mut().proofs_in_batch -= 1;
248248
user_state.get_mut().nonce -= U256::one();
249-
user_state.get_mut().total_fees_in_queue -= U256::one();
250-
user_state.get_mut().last_max_fee_limit = last_max_fee_limit;
249+
user_state.get_mut().total_fees_in_queue -= user_state.get_mut().last_max_fee_limit;
250+
user_state.get_mut().last_max_fee_limit = new_last_max_fee_limit;
251251
}
252252
}
253253

0 commit comments

Comments
 (0)