@@ -657,10 +657,9 @@ impl Batcher {
657657 if self . user_balance_is_unlocked ( & addr) . await {
658658 send_message (
659659 ws_conn_sink. clone ( ) ,
660- // last_valid_nonce = client_msg.verification_data.nonce - 1.
661660 SubmitProofResponseMessage :: InsufficientBalance (
662661 addr,
663- nonced_verification_data. nonce - 1 ,
662+ nonced_verification_data. nonce ,
664663 ) ,
665664 )
666665 . await ;
@@ -753,10 +752,9 @@ impl Batcher {
753752 std:: mem:: drop ( batch_state_lock) ;
754753 send_message (
755754 ws_conn_sink. clone ( ) ,
756- // last_valid_nonce = client_msg.verification_data.nonce - 1.
757755 SubmitProofResponseMessage :: InsufficientBalance (
758756 addr,
759- nonced_verification_data. nonce - 1 ,
757+ nonced_verification_data. nonce ,
760758 ) ,
761759 )
762760 . await ;
@@ -1692,10 +1690,9 @@ impl Batcher {
16921690 error ! ( "Could not get balance for non-paying address {replacement_addr:?}" ) ;
16931691 send_message (
16941692 ws_sink. clone ( ) ,
1695- // last_valid_nonce = client_msg.verification_data.nonce - 1.
16961693 SubmitProofResponseMessage :: InsufficientBalance (
16971694 replacement_addr,
1698- client_msg. verification_data . nonce - 1 ,
1695+ client_msg. verification_data . nonce ,
16991696 ) ,
17001697 )
17011698 . await ;
@@ -1706,10 +1703,9 @@ impl Batcher {
17061703 error ! ( "Insufficient funds for non-paying address {replacement_addr:?}" ) ;
17071704 send_message (
17081705 ws_sink. clone ( ) ,
1709- // last_valid_nonce = client_msg.verification_data.nonce - 1.
17101706 SubmitProofResponseMessage :: InsufficientBalance (
17111707 replacement_addr,
1712- client_msg. verification_data . nonce - 1 ,
1708+ client_msg. verification_data . nonce ,
17131709 ) ,
17141710 )
17151711 . await ;
0 commit comments