From f346fa8aff5082cdfed940ebac14fac6ed353fe7 Mon Sep 17 00:00:00 2001 From: Anson Date: Wed, 2 Oct 2024 13:35:19 +0100 Subject: [PATCH] fix: authSig should be delegated to bob's authMethodOwnedPkp instead of his EOA's PKP --- .../testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs.ts b/local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs.ts index 2fca0422e5..40f980c158 100644 --- a/local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs.ts +++ b/local-tests/tests/testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs.ts @@ -48,7 +48,7 @@ export const testDelegatingCapacityCreditsNFTToAnotherPkpToExecuteJs = async ( // As a dApp owner, create a capacity delegation authSig for Bob's PKP wallet const capacityDelegationAuthSig = await alice.createCapacityDelegationAuthSig( - [bob.pkp.ethAddress] + [bob.authMethodOwnedPkp.ethAddress] ); // As a dApp owner, delegate the capacity credits NFT to Bob