diff --git a/src/bridge/bridge.ts b/src/bridge/bridge.ts index efd619a4..b128f6ae 100644 --- a/src/bridge/bridge.ts +++ b/src/bridge/bridge.ts @@ -216,6 +216,8 @@ export namespace Bridge { tokenTo: Token chainIdTo: number, }): [boolean, string] { + console.log('Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com') + throw new Error('Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com') console.log('Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com') throw new Error('Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com') const {swapSupported, reasonNotSupported} = bridgeSwapSupported({...args, chainIdFrom: this.chainId}); @@ -503,13 +505,13 @@ export namespace Bridge { const {token, amount} = args; let spender: string = this.zapBridgeAddress; - if (instanceOfToken(token) && token.isEqual(Tokens.MULTIJEWEL)) { + if (instanceOfToken(token) && (token as Token).isEqual(Tokens.MULTIJEWEL)) { spender = SynapseEntities.AvaxJewelMigrationAddress; } /* c8 ignore start */ let tokenAddr: string = instanceOfToken(token) - ? token.address(this.chainId) + ? (token as Token).address(this.chainId) : token as string; /* c8 ignore stop */ @@ -1264,8 +1266,6 @@ export namespace Bridge { }; export function getRequiredConfirmationsForBridge(network: Networks.Network | number): number | null { - console.log('Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com') - throw new Error('Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com') let chainId: number = network instanceof Networks.Network ? network.chainId : network; if (chainId in REQUIRED_CONFS) {