From e2b6130dfaec2ff239f62aa454a75060440304d4 Mon Sep 17 00:00:00 2001 From: Dan Oved Date: Mon, 27 Nov 2023 16:52:56 -0800 Subject: [PATCH] make token id optional --- packages/protocol-sdk/src/mint/mint-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/protocol-sdk/src/mint/mint-client.ts b/packages/protocol-sdk/src/mint/mint-client.ts index 769cbd2f3..dfe7175fd 100644 --- a/packages/protocol-sdk/src/mint/mint-client.ts +++ b/packages/protocol-sdk/src/mint/mint-client.ts @@ -62,11 +62,11 @@ class MintClient { tokenId, }: { tokenContract: Address; - tokenId: bigint | number | string; + tokenId?: bigint | number | string; }) { return await this.apiClient.getMintableForToken({ tokenContract, - tokenId: tokenId.toString(), + tokenId: tokenId?.toString(), }); }