Skip to content

Commit e513997

Browse files
committed
fix: non paying case
1 parent 688b017 commit e513997

File tree

1 file changed

+1
-10
lines changed
  • batcher/aligned-batcher/src

1 file changed

+1
-10
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,19 +1377,10 @@ impl Batcher {
13771377
}
13781378

13791379
let batch_state_lock = self.batch_state.lock().await;
1380-
let Some(non_paying_nonce) = batch_state_lock.get_user_nonce(&replacement_addr).await
1381-
else {
1382-
std::mem::drop(batch_state_lock);
1383-
error!("Nonce for non-paying address {replacement_addr:?} not found in cache.");
1384-
send_message(ws_sink.clone(), ResponseMessage::EthRpcError).await;
1385-
return Ok(());
1386-
};
1387-
1388-
debug!("Non-paying nonce: {:?}", non_paying_nonce);
13891380

13901381
let nonced_verification_data = NoncedVerificationData::new(
13911382
client_msg.verification_data.verification_data.clone(),
1392-
non_paying_nonce,
1383+
client_msg.verification_data.nonce,
13931384
DEFAULT_MAX_FEE_PER_PROOF.into(), // 13_000 gas per proof * 100 gwei gas price (upper bound)
13941385
self.chain_id,
13951386
self.payment_service.address(),

0 commit comments

Comments
 (0)