Commit da9e9919 authored by tre's avatar tre

Update packages/sdk/src/adapters/standard-bridge.ts

Co-authored-by: default avatarWill Cory <willcory10@gmail.com>
parent eb1c4377
......@@ -186,6 +186,9 @@ export class StandardBridgeAdapter implements IBridgeAdapter {
// If the L2 token is not an L2StandardERC20, it may throw an error. If there's a call
// exception then we assume that the token is not supported. Other errors are thrown. Since
// the JSON-RPC API is not well-specified, we need to handle multiple possible error codes.
if (!err?.message?.toString().includes('CALL_EXCEPTION') && !err?.stack?.toString().includes('execution reverted') {
console.error('Unexpected error when checking bridge', e)
}
return false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment