Skip to content

Commit b5541d6

Browse files
authored
fix(e2e): always init bb sync in wallet worker (#23855)
1 parent b82384a commit b5541d6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

yarn-project/end-to-end/src/test-wallet/wallet_worker_script.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createAztecNodeClient } from '@aztec/aztec.js/node';
22
import type { SendOptions } from '@aztec/aztec.js/wallet';
3-
import { BarretenbergSync } from '@aztec/bb.js';
3+
import { BackendType, BarretenbergSync } from '@aztec/bb.js';
44
import { jsonStringify } from '@aztec/foundation/json-rpc';
55
import { createLogger } from '@aztec/foundation/log';
66
import type { ApiSchema, Fr } from '@aztec/foundation/schemas';
@@ -20,9 +20,8 @@ try {
2020

2121
logger.info('Initializing worker wallet', { nodeUrl });
2222
const node = createAztecNodeClient(nodeUrl);
23-
if (pxeConfig?.proverEnabled) {
24-
await BarretenbergSync.initSingleton();
25-
}
23+
// Worker sync bb use is limited to crypto and proof serialization helpers.
24+
await BarretenbergSync.initSingleton({ backend: BackendType.Wasm });
2625
const wallet = await TestWallet.create(node, pxeConfig);
2726
logger.info('Worker wallet initialized');
2827

0 commit comments

Comments
 (0)