diff --git a/test/helpers/constants.ts b/test/helpers/constants.ts index bacaff3394..d729a87420 100644 --- a/test/helpers/constants.ts +++ b/test/helpers/constants.ts @@ -191,10 +191,6 @@ export const MAX_ETH_POV_PER_TX = 3_250_000n; type ConstantStoreType = (typeof RUNTIME_CONSTANTS)["MOONBASE"]; export function ConstantStore(context: GenericContext): ConstantStoreType { - const runtimeChain = context.polkadotJs().consts.system.version.specName.toUpperCase(); - const runtime = runtimeChain - .split(" ") - .filter((v) => Object.keys(RUNTIME_CONSTANTS).includes(v)) - .join(); + const runtime = context.polkadotJs().consts.system.version.specName.toUpperCase(); return RUNTIME_CONSTANTS[runtime]; } diff --git a/test/suites/lazy-loading/test-runtime-upgrade.ts b/test/suites/lazy-loading/test-runtime-upgrade.ts index f935469c09..d50be3c5b4 100644 --- a/test/suites/lazy-loading/test-runtime-upgrade.ts +++ b/test/suites/lazy-loading/test-runtime-upgrade.ts @@ -1,6 +1,5 @@ import "@moonbeam-network/api-augment"; import { beforeAll, describeSuite, expect } from "@moonwall/cli"; -import { RUNTIME_CONSTANTS } from "../../helpers"; import { ApiPromise } from "@polkadot/api"; import fs from "fs/promises"; import { u8aToHex } from "@polkadot/util"; @@ -24,12 +23,7 @@ describeSuite({ beforeAll(async () => { api = context.polkadotJs(); - const runtimeChain = api.consts.system.version.specName.toUpperCase(); - const runtime = runtimeChain - .split(" ") - .filter((v) => Object.keys(RUNTIME_CONSTANTS).includes(v)) - .join() - .toLowerCase(); + const runtime = api.consts.system.version.specName.toLowerCase(); const wasmPath = `../target/release/wbuild/${runtime}-runtime/${runtime}_runtime.compact.compressed.wasm`; // editorconfig-checker-disable-line const runtimeWasmHex = u8aToHex(await fs.readFile(wasmPath));