From 022159d3f3f015d93498089ad9f58b604a2988c8 Mon Sep 17 00:00:00 2001 From: spypsy Date: Wed, 21 Feb 2024 12:25:26 +0000 Subject: [PATCH] remove duplication --- yarn-project/aztec/src/cli/util.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/yarn-project/aztec/src/cli/util.ts b/yarn-project/aztec/src/cli/util.ts index 9143abbe99ae..3a7a3f499cd3 100644 --- a/yarn-project/aztec/src/cli/util.ts +++ b/yarn-project/aztec/src/cli/util.ts @@ -1,21 +1,12 @@ import { ArchiverConfig } from '@aztec/archiver'; import { AztecNodeConfig } from '@aztec/aztec-node'; import { AccountManager } from '@aztec/aztec.js'; -import { L1ContractAddresses } from '@aztec/ethereum'; +import { L1ContractAddresses, l1ContractsNames } from '@aztec/ethereum'; import { EthAddress } from '@aztec/foundation/eth-address'; import { LogFn, createConsoleLogger } from '@aztec/foundation/log'; import { P2PConfig } from '@aztec/p2p'; import { GrumpkinScalar, PXEService, PXEServiceConfig } from '@aztec/pxe'; -const l1ContractsNames = [ - 'rollupAddress', - 'inboxAddress', - 'outboxAddress', - 'contractDeploymentEmitterAddress', - 'availabilityOracleAddress', - 'registryAddress', -]; - /** * Checks if the object has l1Contracts property * @param obj - The object to check