@@ -7,11 +7,15 @@ import { createAztecNodeClient } from "@aztec/aztec.js/node";
77import { TokenContract } from "@aztec/noir-contracts.js/Token"
88import { getSponsoredFPCInstance } from "../src/utils/sponsored_fpc.js" ;
99import { SponsoredFPCContractArtifact } from "@aztec/noir-contracts.js/SponsoredFPC" ;
10- import { getAztecNodeUrl , getTimeouts } from "../config/config.js" ;
10+ import configManager , { getAztecNodeUrl , getTimeouts } from "../config/config.js" ;
1111import { EmbeddedWallet } from "@aztec/wallets/embedded" ;
1212
1313const nodeUrl = getAztecNodeUrl ( ) ;
1414const node = createAztecNodeClient ( nodeUrl ) ;
15+ const walletOpts = {
16+ ephemeral : true ,
17+ pxeConfig : { proverEnabled : configManager . isDevnet ( ) } ,
18+ } ;
1519
1620const L2_TOKEN_CONTRACT_SALT = Fr . random ( ) ;
1721
@@ -33,8 +37,8 @@ export async function getL2TokenContractInstance(deployerAddress: any, ownerAzte
3337
3438async function main ( ) {
3539
36- const wallet1 = await EmbeddedWallet . create ( node , { ephemeral : true } ) ;
37- const wallet2 = await EmbeddedWallet . create ( node , { ephemeral : true } ) ;
40+ const wallet1 = await EmbeddedWallet . create ( node , walletOpts ) ;
41+ const wallet2 = await EmbeddedWallet . create ( node , walletOpts ) ;
3842 const sponsoredFPC = await getSponsoredFPCInstance ( ) ;
3943 await wallet1 . registerContract ( sponsoredFPC , SponsoredFPCContractArtifact ) ;
4044 await wallet2 . registerContract ( sponsoredFPC , SponsoredFPCContractArtifact ) ;
0 commit comments