From 3afb0b8ad36817aa233682d5161148ced59d674d Mon Sep 17 00:00:00 2001 From: spsjvc Date: Wed, 20 Dec 2023 15:02:15 +0100 Subject: [PATCH] fix --- src/prepareNodeConfig.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/prepareNodeConfig.ts b/src/prepareNodeConfig.ts index ace51245..9089e375 100644 --- a/src/prepareNodeConfig.ts +++ b/src/prepareNodeConfig.ts @@ -6,7 +6,12 @@ import { import { ChainConfig } from './types/ChainConfig'; import { CoreContracts } from './types/CoreContracts'; import { ParentChainId, validParentChainId } from './types/ParentChain'; -import { sepolia, arbitrumSepolia } from './chains'; +import { + sepolia, + arbitrumSepolia, + nitroTestnodeL1, + nitroTestnodeL2, +} from './chains'; function sanitizePrivateKey(privateKey: string) { return privateKey.startsWith('0x') ? privateKey.slice(2) : privateKey; @@ -26,9 +31,11 @@ function parentChainIsArbitrum(parentChainId: ParentChainId): boolean { // doing switch here to make sure it's exhaustive when checking against `ParentChainId` switch (parentChainId) { case sepolia.id: + case nitroTestnodeL1.id: return false; case arbitrumSepolia.id: + case nitroTestnodeL2.id: return true; } }