Skip to content

Commit

Permalink
fix: aztec node to save outbox adddress to config (#2867)
Browse files Browse the repository at this point in the history
Without this talking to outbox address fails in the sandbox
  • Loading branch information
rahul-kothari authored Oct 16, 2023
1 parent d629940 commit b6418a6
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions yarn-project/aztec-sandbox/src/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,13 @@ async function deployContractsToL1(aztecNodeConfig: AztecNodeConfig, hdAccount:
},
};

const l1Contracts = await waitThenDeploy(aztecNodeConfig, () =>
deployL1Contracts(aztecNodeConfig.rpcUrl, hdAccount, localAnvil, logger, l1Artifacts),
);
aztecNodeConfig.l1Contracts.rollupAddress = l1Contracts.l1ContractAddresses.rollupAddress;
aztecNodeConfig.l1Contracts.contractDeploymentEmitterAddress =
l1Contracts.l1ContractAddresses.contractDeploymentEmitterAddress;
aztecNodeConfig.l1Contracts.inboxAddress = l1Contracts.l1ContractAddresses.inboxAddress;
aztecNodeConfig.l1Contracts.registryAddress = l1Contracts.l1ContractAddresses.registryAddress;
return l1Contracts;
aztecNodeConfig.l1Contracts = (
await waitThenDeploy(aztecNodeConfig, () =>
deployL1Contracts(aztecNodeConfig.rpcUrl, hdAccount, localAnvil, logger, l1Artifacts),
)
).l1ContractAddresses;

return aztecNodeConfig.l1Contracts;
}

/** Sandbox settings. */
Expand Down

0 comments on commit b6418a6

Please sign in to comment.