From 92f0f317ba0c7301d398c5eda7cce5aec05abe9f Mon Sep 17 00:00:00 2001 From: Romashka Date: Mon, 23 Dec 2024 19:17:01 +0200 Subject: [PATCH] code-Update blockchain-data.js --- lib.commonjs/_tests/blockchain-data.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib.commonjs/_tests/blockchain-data.js b/lib.commonjs/_tests/blockchain-data.js index 001511725b..77bde58d3e 100644 --- a/lib.commonjs/_tests/blockchain-data.js +++ b/lib.commonjs/_tests/blockchain-data.js @@ -394,13 +394,11 @@ exports.networkNames = [ "mainnet", "goerli", "sepolia" ]; function networkFeatureAtBlock(feature, block) { - switch (feature) { - case "byzantium": - return block >= 4370000; - default: - break; + if (feature === "byzantium") { + return block >= 4370000; } throw new Error(`unknown feature: ${feature}`); } + exports.networkFeatureAtBlock = networkFeatureAtBlock; -//# sourceMappingURL=blockchain-data.js.map \ No newline at end of file +//# sourceMappingURL=blockchain-data.js.map