Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const result = await this.connection.getSignatureStatus(txId, {
- searchTransactionHistory: true
- })
- const status = result.value
- if (!status) {
- if (iteration >= 200) {
- throw new Error(this.$t('user.dashboard.wallet.swap.unknown_error'))
- }
- } else if (status.err) {
- this.onTransactionError(txId, status.err)
- } else if (!status.confirmations && status.confirmationStatus !== 'finalized') {
- } else {
- done = true
- }
- await sleep(2000)
- iteration++
Advertisement
Add Comment
Please, Sign In to add comment