Skip to content

Commit

Permalink
Fixed return type
Browse files Browse the repository at this point in the history
  • Loading branch information
acedward committed Apr 18, 2024
1 parent 8d7c1a0 commit a8d15d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import type {
import type {
ICdeCardanoAssetUtxosByAddressParams,
ICdeErc1155GetAllTokensResult,
ICdeErc1155GetByTokenIdAndWalletResult,
ICdeErc1155GetByTokenIdResult,
} from '@paima/db';

Expand Down Expand Up @@ -201,7 +202,7 @@ export async function internalGetErc1155ByTokenIdAndWallet(
cde_id: number,
wallet_address: string,
token_id: bigint
): Promise<ICdeErc1155GetByTokenIdResult | null> {
): Promise<ICdeErc1155GetByTokenIdAndWalletResult | null> {
return (
await cdeErc1155GetByTokenIdAndWallet.run(
{ cde_id, wallet_address, token_id: String(token_id) },
Expand Down
3 changes: 2 additions & 1 deletion packages/node-sdk/paima-utils-backend/src/cde-access.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
import type {
ICdeCardanoGetProjectedNftResult,
ICdeErc1155GetAllTokensResult,
ICdeErc1155GetByTokenIdAndWalletResult,
ICdeErc1155GetByTokenIdResult,
} from '@paima/db/src';
export type { ICdeErc1155GetAllTokensResult };
Expand Down Expand Up @@ -196,7 +197,7 @@ export async function getErc1155ByTokenIdAndWallet(
cdeName: string,
wallet: string,
tokenId: bigint
): Promise<ICdeErc1155GetByTokenIdResult | null> {
): Promise<ICdeErc1155GetByTokenIdAndWalletResult | null> {
const cdeId = await getCdeIdByName(readonlyDBConn, cdeName);
if (cdeId === null) return null;
return await internalGetErc1155ByTokenIdAndWallet(readonlyDBConn, cdeId, wallet, tokenId);
Expand Down

0 comments on commit a8d15d8

Please sign in to comment.