From f851ddef699d2c8847670953fa91df1b2c85bea7 Mon Sep 17 00:00:00 2001 From: nickkelly1 Date: Tue, 12 Nov 2024 13:42:11 -0600 Subject: [PATCH] fix: rango supported network check --- packages/swap/src/providers/rango/index.ts | 2 ++ packages/swap/tests/zerox.test.ts | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/swap/src/providers/rango/index.ts b/packages/swap/src/providers/rango/index.ts index 3218d963e..ed5743e7e 100644 --- a/packages/swap/src/providers/rango/index.ts +++ b/packages/swap/src/providers/rango/index.ts @@ -629,6 +629,7 @@ class Rango extends ProviderClass { ` Enkrypt does not support Rango swap on the source network` + ` fromNetwork=${this.network}` ); + return null; } // We must support Rango on the destination network @@ -642,6 +643,7 @@ class Rango extends ProviderClass { ` Enkrypt does not support Rango swap on the destination network` + ` fromNetwork=${this.network}` ); + return null; } // Rango must support the source network diff --git a/packages/swap/tests/zerox.test.ts b/packages/swap/tests/zerox.test.ts index e7373be80..bedc9f507 100644 --- a/packages/swap/tests/zerox.test.ts +++ b/packages/swap/tests/zerox.test.ts @@ -25,10 +25,10 @@ describe("Zerox Provider", () => { if (process.env.CI) { // We need at-least one test otherwise vitest reports failure - it('No ZeroX swap tests in CI', function() { - expect(true).toBeTruthy() - }) - return + it("No ZeroX swap tests in CI", function () { + expect(true).toBeTruthy(); + }); + return; } it(