Skip to content

Commit

Permalink
Update batcher/aligned-sdk/src/communication/messaging.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
uri-99 authored Dec 30, 2024
1 parent c3ea68f commit 72cff08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batcher/aligned-sdk/src/communication/messaging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub async fn receive(
warn!("Error while handling batcher response: {:?}", e);
// When submitting multiple batches a InsufficientBalance error may occur when the `max_balance` of a user within the
// BatcherPaymentService.sol is exceeded. This leads to a scenario where some proofs are verified and others rejected with
// The SubmitError::InsufficientBalance(error_nonce) thrown. To ensure the user is notified of that some of there proofs were rejected
// The SubmitError::InsufficientBalance(error_nonce) thrown. To ensure the user is notified that some of their proofs were rejected
// we return upon erroring the nonce of the proof that has errored (is returned earlier) and set that as the new `last_proof_nonce`.
// This ensures the client messaging protocol continues receivng verification and error responses until all messages are received.
if let SubmitError::InsufficientBalance(_, error_nonce) = e {
Expand Down

0 comments on commit 72cff08

Please sign in to comment.