@defillama/sdk 4.0.21 → 4.0.22

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.
@@ -221,9 +221,9 @@ function multiCall(params) {
221
221
  // check if target adddress is missing for one of the calls
222
222
  if (params.calls.some(function (i) {
223
223
  if (typeof i === 'string' && i.startsWith('0x'))
224
- return !isValidTarget(i);
224
+ return !isValidTarget(i, params.chain);
225
225
  if (typeof i === 'object')
226
- return !isValidTarget(i.target);
226
+ return !isValidTarget(i.target, params.chain);
227
227
  return true;
228
228
  })) {
229
229
  (0, debugLog_1.debugLog)('Multicall is missing target', JSON.stringify(params, null, 2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {