UNPKG

@bioneisme/greenfield-cli

Version:
16 lines (15 loc) 519 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.changeChainId = void 0; const config_1 = require("../../utils/config"); function changeChainId(chainId) { try { const oldChainId = config_1.config.get("chainId"); config_1.config.set("chainId", chainId); console.log(`Change chain ID from ${oldChainId} to ${chainId} successfully`); } catch (e) { console.error(`Change chain ID failed: ${e}`); } } exports.changeChainId = changeChainId;