Skip to content

Commit

Permalink
CP-8181: ignore invalid pairing link error (#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruijialin-avalabs authored Feb 20, 2024
1 parent 3d51d9f commit f69f425
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ class WalletConnectService {
return
}

if (
error instanceof Error &&
error.message
.toLowerCase()
.includes('missing or invalid. pair() uri#relay-protocol')
) {
Logger.info('ignore invalid link')
return
}

// rethrow for all other errors
throw error
}
Expand Down

0 comments on commit f69f425

Please sign in to comment.