Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/contracts-sdk/src/lib/contracts-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Copy link
Contributor

@FedericoAmura FedericoAmura Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should make the tokenId optional in TokenInfo to keep Typescript consistency. This way we can also remove the any in derivedAddresses return type TokenInfo | any

publicKey: pubKey,
});

if (!addrs.tokenId) {
addrs.tokenId = tokenId;
}

arr.push(addrs);
}

Expand Down
Loading