@solarity/hardhat-migrate
Version:
The simplest way to deploy smart contracts
13 lines • 589 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getChainId = getChainId;
exports.isDeployedContractAddress = isDeployedContractAddress;
const ethers_1 = require("ethers");
const NetworkManager_1 = require("../tools/network/NetworkManager");
async function getChainId() {
return (0, ethers_1.toBigInt)(await NetworkManager_1.networkManager.provider.send("eth_chainId"));
}
async function isDeployedContractAddress(address) {
return (await NetworkManager_1.networkManager.provider.getCode(address)) !== "0x";
}
//# sourceMappingURL=network.js.map