Skip to content

Commit cab70d6

Browse files
authored
Merge pull request #994 from LIT-Protocol/anson/fix-artillery-howards-fix
refactor: change to eoa auth
2 parents e1db48b + fc60961 commit cab70d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/artillery/src/processors/multi-endpoints.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,14 @@ export async function runExecuteJSTest(context: any, _events: any) {
263263
// Set up access control conditions requiring wallet ownership
264264
const builder = createAccBuilder();
265265
const accs = builder
266-
.requireWalletOwnership(state.masterAccount.pkp.ethAddress)
266+
.requireWalletOwnership(authContext.account.address)
267267
.on('ethereum')
268268
.build();
269269

270270
let encryptedData: any;
271-
if (variant === 'decryptToSingleNodeWithoutAuthSig') {
271+
if (variant === 'decryptToSingleNode') {
272272
// Encrypt data with the access control conditions
273-
const dataToEncrypt = 'Hello from PKP encrypt-decrypt test!';
273+
const dataToEncrypt = 'Hello from encrypt-decrypt test!';
274274
encryptedData = await litClient.encrypt({
275275
dataToEncrypt,
276276
unifiedAccessControlConditions: accs,
@@ -284,7 +284,7 @@ export async function runExecuteJSTest(context: any, _events: any) {
284284
state,
285285
encryptedData,
286286
accs,
287-
await authContext.authNeededCallback()
287+
null
288288
);
289289

290290
const result = await litClient.executeJs({

0 commit comments

Comments
 (0)