hardhat 2.9.6 → 2.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1484,7 +1484,7 @@ Hardhat Network's forking functionality only works with blocks from at least spu
1484
1484
  }
1485
1485
  originalCommon = this._vm._common;
1486
1486
  this._vm._common = new common_1.default({
1487
- chain: Object.assign(Object.assign({}, this._vm._common["_chainParams"]), { chainId: this._forkBlockNumber !== undefined &&
1487
+ chain: Object.assign(Object.assign({}, this._vm._common["_chainParams"]), { chainId: this._forkBlockNumber === undefined ||
1488
1488
  blockContext.header.number.gte(new ethereumjs_util_1.BN(this._forkBlockNumber))
1489
1489
  ? this._configChainId
1490
1490
  : this._forkNetworkId, networkId: (_a = this._forkNetworkId) !== null && _a !== void 0 ? _a : this._configNetworkId }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hardhat",
3
- "version": "2.9.6",
3
+ "version": "2.9.7",
4
4
  "author": "Nomic Labs LLC",
5
5
  "license": "MIT",
6
6
  "homepage": "https://hardhat.org",
@@ -2352,7 +2352,7 @@ Hardhat Network's forking functionality only works with blocks from at least spu
2352
2352
  // eslint-disable-next-line @typescript-eslint/dot-notation
2353
2353
  ...this._vm._common["_chainParams"],
2354
2354
  chainId:
2355
- this._forkBlockNumber !== undefined &&
2355
+ this._forkBlockNumber === undefined ||
2356
2356
  blockContext.header.number.gte(new BN(this._forkBlockNumber))
2357
2357
  ? this._configChainId
2358
2358
  : this._forkNetworkId,