@defisaver/positions-sdk 0.0.100 → 0.0.101

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.
@@ -16,7 +16,7 @@ const multicall = (calls, web3, network = common_1.NetworkNumber.Eth, blockNumbe
16
16
  const multicallContract = (0, contracts_1.UniMulticallContract)(web3, network);
17
17
  const formattedCalls = calls.map((call) => {
18
18
  const callData = web3.eth.abi.encodeFunctionCall(call.abiItem, call.params);
19
- return { callData, target: call.target || '0x0', gasLimit: call.gasLimit || 1e6 };
19
+ return { callData, target: call.target || '0x0', gasLimit: call.gasLimit || 1200000 };
20
20
  });
21
21
  const callResult = yield multicallContract.methods.multicall(formattedCalls.filter(item => item.target !== '0x0')).call({}, blockNumber);
22
22
  let formattedResult = [];
@@ -13,7 +13,7 @@ export const multicall = (calls, web3, network = NetworkNumber.Eth, blockNumber
13
13
  const multicallContract = UniMulticallContract(web3, network);
14
14
  const formattedCalls = calls.map((call) => {
15
15
  const callData = web3.eth.abi.encodeFunctionCall(call.abiItem, call.params);
16
- return { callData, target: call.target || '0x0', gasLimit: call.gasLimit || 1e6 };
16
+ return { callData, target: call.target || '0x0', gasLimit: call.gasLimit || 1200000 };
17
17
  });
18
18
  const callResult = yield multicallContract.methods.multicall(formattedCalls.filter(item => item.target !== '0x0')).call({}, blockNumber);
19
19
  let formattedResult = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "0.0.100",
3
+ "version": "0.0.101",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -6,7 +6,7 @@ export const multicall = async (calls: any[], web3: Web3, network: NetworkNumber
6
6
  const multicallContract = UniMulticallContract(web3, network);
7
7
  const formattedCalls = calls.map((call) => {
8
8
  const callData = web3.eth.abi.encodeFunctionCall(call.abiItem, call.params);
9
- return { callData, target: call.target || '0x0', gasLimit: call.gasLimit || 1e6 };
9
+ return { callData, target: call.target || '0x0', gasLimit: call.gasLimit || 1200000 };
10
10
  });
11
11
  const callResult = await multicallContract.methods.multicall(formattedCalls.filter(item => item.target !== '0x0')).call({}, blockNumber);
12
12