@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.
- package/build/abi/index.js +2 -2
- package/package.json +1 -1
package/build/abi/index.js
CHANGED
|
@@ -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));
|