@synthetixio/js
Advanced tools
Comparing version 2.41.0-alpha to 2.41.1-alpha
@@ -40,3 +40,3 @@ "use strict"; | ||
if ((network && !synthetix_1.networks.includes(network)) || | ||
(networkId && !Object.values(synthetix_1.networkToChainId).includes(networkId))) { | ||
(networkId && !synthetix_1.getNetworkFromId({ id: networkId }))) { | ||
throw new Error(constants_1.ERRORS.badNetworkArg); | ||
@@ -43,0 +43,0 @@ } |
@@ -11,2 +11,3 @@ "use strict"; | ||
Network["Kovan"] = "kovan"; | ||
Network["MainnetFork"] = "mainnet-fork"; | ||
})(Network = exports.Network || (exports.Network = {})); | ||
@@ -20,2 +21,3 @@ var NetworkId; | ||
NetworkId[NetworkId["Kovan"] = 42] = "Kovan"; | ||
NetworkId[NetworkId["MainnetFork"] = 31337] = "MainnetFork"; | ||
})(NetworkId = exports.NetworkId || (exports.NetworkId = {})); |
@@ -7,3 +7,4 @@ import { ethers } from 'ethers'; | ||
Goerli = "goerli", | ||
Kovan = "kovan" | ||
Kovan = "kovan", | ||
MainnetFork = "mainnet-fork" | ||
} | ||
@@ -15,3 +16,4 @@ export declare enum NetworkId { | ||
Goerli = 5, | ||
Kovan = 42 | ||
Kovan = 42, | ||
MainnetFork = 31337 | ||
} | ||
@@ -18,0 +20,0 @@ declare type ContractInfo = { |
{ | ||
"name": "@synthetixio/js", | ||
"version": "2.41.0-alpha", | ||
"version": "2.41.1-alpha", | ||
"description": "A library for interacting with Synthetix smart contracts", | ||
@@ -5,0 +5,0 @@ "main": "./build/node/index.js", |
Sorry, the diff of this file is too big to display
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
11095501
1271