Skip to content

Commit 8d1f591

Browse files
committed
fix: undefined tokenId
1 parent 683a0d6 commit 8d1f591

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/contracts-sdk/src/lib/contracts-sdk.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1903,10 +1903,14 @@ https://developer.litprotocol.com/v3/sdk/wallets/auth-methods/#auth-method-scope
19031903
for (let i = 0; i < tokenIds.length; i++) {
19041904
const tokenId = tokenIds[i];
19051905
const pubKey = await this.pkpNftContract.read.getPubkey(tokenId);
1906-
const addrs = await derivedAddresses({
1906+
const addrs: TokenInfo = await derivedAddresses({
19071907
publicKey: pubKey,
19081908
});
19091909

1910+
if (!addrs.tokenId) {
1911+
addrs.tokenId = tokenId;
1912+
}
1913+
19101914
arr.push(addrs);
19111915
}
19121916

0 commit comments

Comments
 (0)