File tree Expand file tree Collapse file tree
yarn-project/end-to-end/src/test-wallet Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { createAztecNodeClient } from '@aztec/aztec.js/node' ;
22import type { SendOptions } from '@aztec/aztec.js/wallet' ;
3- import { BarretenbergSync } from '@aztec/bb.js' ;
3+ import { BackendType , BarretenbergSync } from '@aztec/bb.js' ;
44import { jsonStringify } from '@aztec/foundation/json-rpc' ;
55import { createLogger } from '@aztec/foundation/log' ;
66import type { ApiSchema , Fr } from '@aztec/foundation/schemas' ;
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
You can’t perform that action at this time.
0 commit comments