Skip to content

Commit

Permalink
store outbox in config
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari committed Oct 11, 2023
1 parent 6ac2a3a commit 55df0d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion yarn-project/archiver/src/archiver/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function getConfigEnvVars(): ArchiverConfig {
SEARCH_START_BLOCK,
API_KEY,
INBOX_CONTRACT_ADDRESS,
OUTBOX_CONTRACT_ADDRESS,
REGISTRY_CONTRACT_ADDRESS,
DATA_DIRECTORY,
} = process.env;
Expand All @@ -71,7 +72,7 @@ export function getConfigEnvVars(): ArchiverConfig {
rollupAddress: ROLLUP_CONTRACT_ADDRESS ? EthAddress.fromString(ROLLUP_CONTRACT_ADDRESS) : EthAddress.ZERO,
registryAddress: REGISTRY_CONTRACT_ADDRESS ? EthAddress.fromString(REGISTRY_CONTRACT_ADDRESS) : EthAddress.ZERO,
inboxAddress: INBOX_CONTRACT_ADDRESS ? EthAddress.fromString(INBOX_CONTRACT_ADDRESS) : EthAddress.ZERO,
outboxAddress: EthAddress.ZERO,
outboxAddress: OUTBOX_CONTRACT_ADDRESS ? EthAddress.fromString(OUTBOX_CONTRACT_ADDRESS) : EthAddress.ZERO,
contractDeploymentEmitterAddress: CONTRACT_DEPLOYMENT_EMITTER_ADDRESS
? EthAddress.fromString(CONTRACT_DEPLOYMENT_EMITTER_ADDRESS)
: EthAddress.ZERO,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export class CrossChainTestHarness {
const ethAccount = EthAddress.fromString((await walletClient.getAddresses())[0]);
const owner = wallet.getCompleteAddress();
const l1ContractAddresses = (await pxeService.getNodeInfo()).l1ContractAddresses;

const outbox = getContract({
address: l1ContractAddresses.outboxAddress!.toString(),
address: l1ContractAddresses.outboxAddress.toString(),
abi: OutboxAbi,
publicClient,
});
Expand Down
1 change: 1 addition & 0 deletions yarn-project/end-to-end/src/fixtures/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export async function setup(numberOfAccounts = 1, opts: SetupOptions = {}): Prom
config.l1Contracts.contractDeploymentEmitterAddress =
deployL1ContractsValues.l1ContractAddresses.contractDeploymentEmitterAddress;
config.l1Contracts.inboxAddress = deployL1ContractsValues.l1ContractAddresses.inboxAddress;
config.l1Contracts.outboxAddress = deployL1ContractsValues.l1ContractAddresses.outboxAddress;

logger('Creating and synching an aztec node...');
const aztecNode = await AztecNodeService.createAndSync(config);
Expand Down

0 comments on commit 55df0d4

Please sign in to comment.