Skip to content

Commit

Permalink
fix: adapter conv to number
Browse files Browse the repository at this point in the history
  • Loading branch information
palace22 committed Feb 11, 2025
1 parent ccebbd8 commit dba1244
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-keys-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@folks-finance/xchain-sdk": patch
---

Fixed adapter conv to number
2 changes: 1 addition & 1 deletion src/common/utils/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { CrossChainTokenType, FolksTokenId } from "../types/token.js";

export function getSpokeAdapterIds(folksChainId: FolksChainId, network: NetworkType): NonEmptyArray<AdapterType> {
const spokeChain = getSpokeChain(folksChainId, network);
const adapterIds = Object.keys(spokeChain.adapters).map<AdapterType>(parseInt);
const adapterIds = Object.keys(spokeChain.adapters).map<AdapterType>(Number);
return ensureNonEmpty(adapterIds, `No adapters found for chain ${folksChainId}`);
}

Expand Down

0 comments on commit dba1244

Please sign in to comment.