Skip to content

Commit 3db0a62

Browse files
fix: continue status calls after failure (#49)
1 parent a2e6f1a commit 3db0a62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/executionFiles/bridges/bridge.execute.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ export class BridgeExecutionManager {
201201
txHash
202202
)
203203
} catch (e: any) {
204-
// until the source transaction is mined the API will return a 404
205-
if (e.code === LifiErrorCodes.notFound) {
206-
return resolve(undefined)
204+
// until the source transaction is mined the API will return a 404, which is not really an error
205+
if (e.code !== LifiErrorCodes.notFound) {
206+
console.debug('Fetching status from backend failed', e)
207207
}
208208

209-
return reject(e)
209+
return resolve(undefined)
210210
}
211211

212212
switch (statusResponse.status) {

0 commit comments

Comments
 (0)