Skip to content

Commit 6016431

Browse files
committed
Fix lib
1 parent fc18d6c commit 6016431

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

crates/batcher/src/lib.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,6 @@ impl Batcher {
282282
}
283283
}
284284

285-
fn get_user_min_fee_in_batch(
286-
&self,
287-
addr: &Address,
288-
batch_queue: &types::batch_queue::BatchQueue,
289-
) -> U256 {
290-
batch_queue
291-
.iter()
292-
.filter(|(e, _)| &e.sender == addr)
293-
.map(|(e, _)| e.nonced_verification_data.max_fee)
294-
.min()
295-
.unwrap_or(U256::max_value())
296-
}
297285

298286
async fn update_evicted_user_state(
299287
&self,
@@ -1111,7 +1099,7 @@ impl Batcher {
11111099

11121100
// update max_fee_limit
11131101
let updated_max_fee_limit_in_batch =
1114-
self.get_user_min_fee_in_batch(&addr, &batch_state_lock.batch_queue);
1102+
batch_state_lock.get_user_min_fee_in_batch(&addr);
11151103
{
11161104
let user_state = self.user_states.get(&addr);
11171105
match user_state {

0 commit comments

Comments
 (0)