File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
batcher/aligned-batcher/src Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -782,7 +782,7 @@ impl Batcher {
782782 addr,
783783 user_balance,
784784 user_accumulated_fee,
785- msg_max_fee
785+ msg_max_fee,
786786 )
787787 . await ;
788788
@@ -898,8 +898,12 @@ impl Batcher {
898898 return ;
899899 }
900900
901- // For a replacement msg we must subtract the original_max_fee of the message from the user's accumulated max fee.
902- if !self . verify_user_has_enough_balance ( user_balance, user_accumulated_fee - original_max_fee, msg_max_fee) {
901+ // For a replacement msg we must subtract the original_max_fee of the message from the user's accumulated max fee.
902+ if !self . verify_user_has_enough_balance (
903+ user_balance,
904+ user_accumulated_fee - original_max_fee,
905+ msg_max_fee,
906+ ) {
903907 std:: mem:: drop ( batch_state_lock) ;
904908 send_message (
905909 ws_conn_sink. clone ( ) ,
You can’t perform that action at this time.
0 commit comments