@gearbox-protocol/devops
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -48,4 +48,5 @@ "use strict"; | ||
case 0: return [4 /*yield*/, hardhat_1.ethers.getSigners()]; | ||
case 1: | ||
chainId = (_a.sent()).getChainId(); | ||
case 1: return [4 /*yield*/, (_a.sent()).getChainId()]; | ||
case 2: | ||
chainId = _a.sent(); | ||
return [2 /*return*/, chainId === 1337 ? 0 : chainId === 42 ? 2 : 4]; | ||
@@ -52,0 +53,0 @@ } |
{ | ||
"name": "@gearbox-protocol/devops", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Gearbox Devops for SC development", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
// @ts-ignore | ||
import { ethers, network } from "hardhat"; | ||
import { TransactionReceipt } from "@ethersproject/providers"; | ||
import { ContractTransaction, ContractFactory, Contract } from "ethers"; | ||
import { ContractTransaction, ContractFactory, Contract, Signer } from "ethers"; | ||
import { Logger } from "tslog"; | ||
@@ -10,3 +10,3 @@ import { formatBN } from "@gearbox-protocol/sdk"; | ||
// Gets accounts | ||
const chainId = (await ethers.getSigners()).getChainId(); | ||
const chainId = await ((await ethers.getSigners()) as Signer).getChainId(); | ||
@@ -13,0 +13,0 @@ return chainId === 1337 ? 0 : chainId === 42 ? 2 : 4; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66434
1406