diff --git a/packages/contracts-sdk/src/lib/contracts-sdk.ts b/packages/contracts-sdk/src/lib/contracts-sdk.ts index 8561fbbd2..32b189cd3 100644 --- a/packages/contracts-sdk/src/lib/contracts-sdk.ts +++ b/packages/contracts-sdk/src/lib/contracts-sdk.ts @@ -1903,10 +1903,14 @@ https://developer.litprotocol.com/v3/sdk/wallets/auth-methods/#auth-method-scope for (let i = 0; i < tokenIds.length; i++) { const tokenId = tokenIds[i]; const pubKey = await this.pkpNftContract.read.getPubkey(tokenId); - const addrs = await derivedAddresses({ + const addrs: TokenInfo = await derivedAddresses({ publicKey: pubKey, }); + if (!addrs.tokenId) { + addrs.tokenId = tokenId; + } + arr.push(addrs); }