From e21f03993c1d771ab92a3cdea150ffda212298d5 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 20 Oct 2023 18:06:14 -0500 Subject: [PATCH 1/2] refactor: get tokens request --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index 7939a537..b4a67c4f 100644 --- a/src/api.ts +++ b/src/api.ts @@ -380,7 +380,7 @@ export interface ToolsRequest { } export type TokensRequest = { - chains?: ChainId[] + chains?: number[] | string[] chainTypes?: ChainType[] } From dd1374f4b68804c7acdb3dceb09100c47786deef Mon Sep 17 00:00:00 2001 From: Ricardo Date: Mon, 23 Oct 2023 08:53:22 -0500 Subject: [PATCH 2/2] refactor based on comments --- src/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index b4a67c4f..e6357c84 100644 --- a/src/api.ts +++ b/src/api.ts @@ -3,6 +3,7 @@ import { BridgeDefinition, Chain, ChainId, + ChainKey, ChainType, ExchangeDefinition, LifiStep, @@ -380,7 +381,7 @@ export interface ToolsRequest { } export type TokensRequest = { - chains?: number[] | string[] + chains?: (ChainId | ChainKey)[] chainTypes?: ChainType[] }