Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fixing build
Browse files Browse the repository at this point in the history
  • Loading branch information
Defi-Moses committed Apr 17, 2024
2 parents 4741d1f + dbe4cf3 commit aac866c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bridge/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand Down Expand Up @@ -1264,9 +1266,7 @@ 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 as Networks.Network).chainId : network as number;
let chainId: number = network instanceof Networks.Network ? network.chainId : network;

if (chainId in REQUIRED_CONFS) {
return REQUIRED_CONFS[chainId]
Expand Down

0 comments on commit aac866c

Please sign in to comment.