Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Rango supported network check #549

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/swap/src/providers/rango/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/swap/tests/zerox.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down