Skip to content

Commit 345a78c

Browse files
authored
Merge pull request #841 from LIT-Protocol/feature/node-4565-error-accountorwalletclient-is-required-but-was-not-provided
fix(getPermissionsContext): include accountOrWalletClient in tokenId …
2 parents 9a4a364 + 7a40828 commit 345a78c

File tree

1 file changed

+1
-1
lines changed
  • packages/networks/src/networks/vNaga/LitChainClient/apis/highLevelApis/PKPPermissionsManager/handlers

1 file changed

+1
-1
lines changed

packages/networks/src/networks/vNaga/LitChainClient/apis/highLevelApis/PKPPermissionsManager/handlers/getPermissionsContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function getPermissionsContext(
4242
accountOrWalletClient: ExpectedAccountOrWalletClient
4343
): Promise<PermissionsContext> {
4444
// Resolve the identifier to a tokenId
45-
const tokenId = (await resolvePkpTokenId(identifier, networkCtx)).toString();
45+
const tokenId = (await resolvePkpTokenId(identifier, networkCtx, accountOrWalletClient)).toString();
4646
logger.debug({ identifier, tokenId }, 'Loading permissions');
4747

4848
// Fetch all permissions in parallel

0 commit comments

Comments
 (0)