Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Dec 20, 2023
1 parent f670d69 commit 3afb0b8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/prepareNodeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 3afb0b8

Please sign in to comment.