Skip to content

Commit

Permalink
Merge pull request #319 from 00labs/fix-receivable-livestream
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayJok3r authored Sep 21, 2024
2 parents aaf655b + 220e3f0 commit de08f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/huma-sdk/src/services/ReceivableService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ async function loadReceivablesOfOwnerWithMetadata<T>(
poolType: POOL_TYPE,
poolVersion: PoolVersion,
pagination?: Pagination,
apiKey?: string,
): Promise<RealWorldReceivableInfo<T>[]> {
if (!ethers.utils.isAddress(owner)) {
throw new Error('Invalid owner address')
Expand All @@ -439,6 +440,7 @@ async function loadReceivablesOfOwnerWithMetadata<T>(
poolName,
poolType,
pagination,
apiKey,
)
}

Expand Down
3 changes: 2 additions & 1 deletion packages/huma-sdk/src/services/SubgraphService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,9 @@ function getReceivableV2Info(
orderBy: 'tokenId',
orderDirection: 'desc',
},
apiKey?: string,
): Promise<RealWorldReceivableInfoBase[]> {
const url = getSubgraphUrlForChainId(chainId)
const url = getSubgraphUrlForChainId(chainId, apiKey)
if (!url) {
return Promise.resolve([])
}
Expand Down

0 comments on commit de08f40

Please sign in to comment.