Skip to content

Commit a76688b

Browse files
authored
Merge pull request #738 from LIT-Protocol/feature/drel-378-tg-osmosis-team-facing-issues-with-sdk-utility-method
fix: undefined tokenId
2 parents b393fb2 + 4c2ec24 commit a76688b

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)