diff --git a/packages/artillery/src/processors/multi-endpoints.ts b/packages/artillery/src/processors/multi-endpoints.ts index c403b2618..397b5c8c5 100644 --- a/packages/artillery/src/processors/multi-endpoints.ts +++ b/packages/artillery/src/processors/multi-endpoints.ts @@ -263,14 +263,14 @@ export async function runExecuteJSTest(context: any, _events: any) { // Set up access control conditions requiring wallet ownership const builder = createAccBuilder(); const accs = builder - .requireWalletOwnership(state.masterAccount.pkp.ethAddress) + .requireWalletOwnership(authContext.account.address) .on('ethereum') .build(); let encryptedData: any; - if (variant === 'decryptToSingleNodeWithoutAuthSig') { + if (variant === 'decryptToSingleNode') { // Encrypt data with the access control conditions - const dataToEncrypt = 'Hello from PKP encrypt-decrypt test!'; + const dataToEncrypt = 'Hello from encrypt-decrypt test!'; encryptedData = await litClient.encrypt({ dataToEncrypt, unifiedAccessControlConditions: accs, @@ -284,7 +284,7 @@ export async function runExecuteJSTest(context: any, _events: any) { state, encryptedData, accs, - await authContext.authNeededCallback() + null ); const result = await litClient.executeJs({