Skip to content

Commit

Permalink
Fixes nonce issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio committed Mar 15, 2024
1 parent c5548b3 commit 5961b0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,10 @@ where
let transaction = transaction.clone();
let wallet = &wallet_connection_pair.wallet;

/// This can be improved by making the daemon process the transactions in sequence
/// Since it process in parallel and we can have a transaction that deletes the account
Self::reset_wallet_nonce(wallet, &external_id).await;

let connection = &wallet_connection_pair.connection;
tracing::debug!("Signing for external_id: {external_id:?}, request_id: {request_id:?}");
match Self::sign_and_submit(wallet, connection, transaction, external_id.clone()).await {
Expand Down

0 comments on commit 5961b0a

Please sign in to comment.