From a8d15d8b4b8dd25faf68b559d495ac6f70c998e0 Mon Sep 17 00:00:00 2001 From: Edward Alvarado Date: Thu, 18 Apr 2024 18:11:37 -0400 Subject: [PATCH] Fixed return type --- .../node-sdk/paima-utils-backend/src/cde-access-internals.ts | 3 ++- packages/node-sdk/paima-utils-backend/src/cde-access.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts b/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts index 625ae5a3..24236398 100644 --- a/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts +++ b/packages/node-sdk/paima-utils-backend/src/cde-access-internals.ts @@ -31,6 +31,7 @@ import type { import type { ICdeCardanoAssetUtxosByAddressParams, ICdeErc1155GetAllTokensResult, + ICdeErc1155GetByTokenIdAndWalletResult, ICdeErc1155GetByTokenIdResult, } from '@paima/db'; @@ -201,7 +202,7 @@ export async function internalGetErc1155ByTokenIdAndWallet( cde_id: number, wallet_address: string, token_id: bigint -): Promise { +): Promise { return ( await cdeErc1155GetByTokenIdAndWallet.run( { cde_id, wallet_address, token_id: String(token_id) }, diff --git a/packages/node-sdk/paima-utils-backend/src/cde-access.ts b/packages/node-sdk/paima-utils-backend/src/cde-access.ts index b67d675a..c4c1bb79 100644 --- a/packages/node-sdk/paima-utils-backend/src/cde-access.ts +++ b/packages/node-sdk/paima-utils-backend/src/cde-access.ts @@ -23,6 +23,7 @@ import { import type { ICdeCardanoGetProjectedNftResult, ICdeErc1155GetAllTokensResult, + ICdeErc1155GetByTokenIdAndWalletResult, ICdeErc1155GetByTokenIdResult, } from '@paima/db/src'; export type { ICdeErc1155GetAllTokensResult }; @@ -196,7 +197,7 @@ export async function getErc1155ByTokenIdAndWallet( cdeName: string, wallet: string, tokenId: bigint -): Promise { +): Promise { const cdeId = await getCdeIdByName(readonlyDBConn, cdeName); if (cdeId === null) return null; return await internalGetErc1155ByTokenIdAndWallet(readonlyDBConn, cdeId, wallet, tokenId);