During deployment with Solana Smart Wallets, we currently don't wait for transactions to fully complete before marking the deployment state as done. This can lead to misleading status indicators and potential race conditions.
Proposed solution:
- Add a wait loop after submitting transaction approvals in the
submitTransactionApproval function
- Poll the transaction status until it reaches a terminal state (confirmed/finalized or failed)
- Use exponential backoff for efficiency sake
- Only then update the deployment state