We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b393fb2 + 4c2ec24 commit a76688bCopy full SHA for a76688b
packages/contracts-sdk/src/lib/contracts-sdk.ts
@@ -1903,10 +1903,14 @@ https://developer.litprotocol.com/v3/sdk/wallets/auth-methods/#auth-method-scope
1903
for (let i = 0; i < tokenIds.length; i++) {
1904
const tokenId = tokenIds[i];
1905
const pubKey = await this.pkpNftContract.read.getPubkey(tokenId);
1906
- const addrs = await derivedAddresses({
+ const addrs: TokenInfo = await derivedAddresses({
1907
publicKey: pubKey,
1908
});
1909
1910
+ if (!addrs.tokenId) {
1911
+ addrs.tokenId = tokenId;
1912
+ }
1913
+
1914
arr.push(addrs);
1915
}
1916
0 commit comments