Skip to content

Commit

Permalink
fix: DEPLOY_AZTEC_CONTRACTS parsing (#7877)
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy authored Aug 9, 2024
1 parent 6f70bba commit e437dba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions yarn-project/aztec/src/cli/aztec_start_options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export const aztecStartOptions: { [key: string]: AztecStartOption[] } = {
description: 'Deploys L1 Aztec contracts before starting the node. Needs mnemonic or private key to be set',
defaultValue: false,
envVar: 'DEPLOY_AZTEC_CONTRACTS',
parseVal: val => ['1', true].includes(val),
},
{
flag: '--node.publisherPrivateKey <value>',
Expand Down
6 changes: 5 additions & 1 deletion yarn-project/aztec/src/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,12 @@ export async function deployContractsToL1(
},
};

const chain = aztecNodeConfig.l1RpcUrl
? createEthereumChain(aztecNodeConfig.l1RpcUrl, aztecNodeConfig.l1ChainId)
: { chainInfo: localAnvil };

const l1Contracts = await waitThenDeploy(aztecNodeConfig, () =>
deployL1Contracts(aztecNodeConfig.l1RpcUrl, hdAccount, localAnvil, contractDeployLogger, l1Artifacts, {
deployL1Contracts(aztecNodeConfig.l1RpcUrl, hdAccount, chain.chainInfo, contractDeployLogger, l1Artifacts, {
l2FeeJuiceAddress: FeeJuiceAddress,
vkTreeRoot: getVKTreeRoot(),
}),
Expand Down

0 comments on commit e437dba

Please sign in to comment.