@gearbox-protocol/sdk 2.1.7 → 2.1.8

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.
@@ -30,7 +30,7 @@ contract SupportedContracts is Test, ISupportedContracts {
30
30
 
31
31
  uint256 public override contractCount;
32
32
 
33
- constructor() {
33
+ constructor(uint256 _chainId) {
34
34
  contractDataByNetwork[1].push(
35
35
  ContractData({
36
36
  id: Contracts.UNISWAP_V2_ROUTER,
@@ -349,7 +349,7 @@ contract SupportedContracts is Test, ISupportedContracts {
349
349
  })
350
350
  );
351
351
 
352
- ContractData[] storage cd = contractDataByNetwork[block.chainid];
352
+ ContractData[] storage cd = contractDataByNetwork[_chainId];
353
353
 
354
354
  uint256 len = cd.length;
355
355
  contractCount = len;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",