Skip to content

Commit

Permalink
[txn-emitter] Fix underflow when first request fails (#4567)
Browse files Browse the repository at this point in the history
This debugging log was added to show txns around the failure, but when it is the first request, there is no previous transaction.
  • Loading branch information
igor-aptos authored Sep 27, 2022
1 parent d4fb91a commit 2cc0cf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ pub async fn submit_transactions(
client
.get_account_transactions_bcs(
sender,
Some(account.into_inner().sequence_number() - 1),
Some(account.into_inner().sequence_number().saturating_sub(1)),
Some(5),
)
.await
Expand Down

0 comments on commit 2cc0cf5

Please sign in to comment.