Skip to content

Commit

Permalink
Merge pull request #738 from LIT-Protocol/feature/drel-378-tg-osmosis…
Browse files Browse the repository at this point in the history
…-team-facing-issues-with-sdk-utility-method

fix: undefined tokenId
  • Loading branch information
Ansonhkg authored Dec 23, 2024
2 parents b393fb2 + 4c2ec24 commit a76688b
Showing 1 changed file with 5 additions and 1 deletion.
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({
publicKey: pubKey,
});

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

arr.push(addrs);
}

Expand Down

0 comments on commit a76688b

Please sign in to comment.