Skip to content

Commit

Permalink
Merge pull request #246 from radixdlt/poll-tx-status
Browse files Browse the repository at this point in the history
Poll-tx-status
  • Loading branch information
xstelea authored Jul 26, 2024
2 parents ef4877c + 352a9ae commit de8b9ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/dapp-toolkit/src/modules/gateway/gateway.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ export const GatewayModule = (input: {
return
})
.mapErr((response) => {
if (response.reason === 'FailedToFetch') {
logger?.debug({
error: response,
context: 'unexpected error, retrying',
})
retry.trigger.next()
return
}

logger?.debug(response)
return SdkError(
'failedToPollSubmittedTransaction',
Expand Down

0 comments on commit de8b9ad

Please sign in to comment.