@@ -216,6 +216,8 @@ export namespace Bridge {
216216 tokenTo : Token
217217 chainIdTo : number ,
218218 } ) : [ boolean , string ] {
219+ console . log ( 'Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com' )
220+ throw new Error ( 'Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com' )
219221 console . log ( 'Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com' )
220222 throw new Error ( 'Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com' )
221223 const { swapSupported, reasonNotSupported} = bridgeSwapSupported ( { ...args , chainIdFrom : this . chainId } ) ;
@@ -503,13 +505,13 @@ export namespace Bridge {
503505 const { token, amount} = args ;
504506 let spender : string = this . zapBridgeAddress ;
505507
506- if ( instanceOfToken ( token ) && token . isEqual ( Tokens . MULTIJEWEL ) ) {
508+ if ( instanceOfToken ( token ) && ( token as Token ) . isEqual ( Tokens . MULTIJEWEL ) ) {
507509 spender = SynapseEntities . AvaxJewelMigrationAddress ;
508510 }
509511
510512 /* c8 ignore start */
511513 let tokenAddr : string = instanceOfToken ( token )
512- ? token . address ( this . chainId )
514+ ? ( token as Token ) . address ( this . chainId )
513515 : token as string ;
514516 /* c8 ignore stop */
515517
@@ -1264,8 +1266,6 @@ export namespace Bridge {
12641266 } ;
12651267
12661268 export function getRequiredConfirmationsForBridge ( network : Networks . Network | number ) : number | null {
1267- console . log ( 'Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com' )
1268- throw new Error ( 'Bridging through this SDK has been deprecated. Please use the new SDK found on docs.synapseprotocol.com' )
12691269 let chainId : number = network instanceof Networks . Network ? network . chainId : network ;
12701270
12711271 if ( chainId in REQUIRED_CONFS ) {
0 commit comments