You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you quickly create two back-to-back transactions, the recommended nonce for them (from the backend) may end up the same resulting in the second tx cancelling the first one.
WC safe app calls the wallet app and tells it to popup a modal
User confirms the modal and signs the tx
Tx is added to the queue (aka "proposed")
RPC request returns a response to the CoW app
Although adding to the queue should increment the "recommended" nonce on the backend, it doesn't. Apparently, there's an internal lag/asynchronous state involved.
Solution
One potential solution would be to wait/poll until the recommended nonce increments after proposing a tx and make any subsequent txs wait for it.
The text was updated successfully, but these errors were encountered:
Problem
If you quickly create two back-to-back transactions, the recommended nonce for them (from the backend) may end up the same resulting in the second tx cancelling the first one.
Example
An example of how to reproduce: https://www.loom.com/share/89a490a44d454d9bba67c15d9e602ff1
What happens under the hood:
Although adding to the queue should increment the "recommended" nonce on the backend, it doesn't. Apparently, there's an internal lag/asynchronous state involved.
Solution
One potential solution would be to wait/poll until the recommended nonce increments after proposing a tx and make any subsequent txs wait for it.
The text was updated successfully, but these errors were encountered: