Skip to content

Commit e4852ae

Browse files
committed
fix: typing
1 parent 56138db commit e4852ae

File tree

1 file changed

+2
-1
lines changed
  • src/data/providers/balancer-api/modules/sorSwapPaths

1 file changed

+2
-1
lines changed

src/data/providers/balancer-api/modules/sorSwapPaths/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { DocumentNode, print } from 'graphql';
1010
import {
1111
sorGetSwapPathsQuery,
1212
sorGetSwapPathsQueryVariables,
13+
GqlChain,
1314
} from '../../generated/types';
1415

1516
// Re-export the original type for backward compatibility
@@ -117,7 +118,7 @@ export class SorSwapPaths {
117118

118119
async fetchSorSwapPaths(sorInput: SorInput): Promise<Path[]> {
119120
const baseVariables: sorGetSwapPathsQueryVariables = {
120-
chain: this.mapGqlChain(sorInput.chainId) as any, // Cast to GqlChain
121+
chain: this.mapGqlChain(sorInput.chainId) as GqlChain,
121122
swapAmount: sorInput.swapAmount.toSignificant(
122123
sorInput.swapAmount.token.decimals,
123124
), // Must use human scale

0 commit comments

Comments
 (0)