File tree Expand file tree Collapse file tree
batcher/aligned-batcher/src/types Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments