Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/artillery/src/processors/multi-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -284,7 +284,7 @@ export async function runExecuteJSTest(context: any, _events: any) {
state,
encryptedData,
accs,
await authContext.authNeededCallback()
null
);

const result = await litClient.executeJs({
Expand Down
Loading