@defillama/sdk 5.0.150 → 5.0.151
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/Balances.d.ts +3 -5
- package/build/Balances.js +9 -6
- package/build/ChainApi.d.ts +22 -15
- package/build/ChainApi.js +54 -20
- package/build/abi/multicall3.js +1 -0
- package/build/providers.json +723 -1
- package/build/util/indexer.js +2 -0
- package/build/util/updateProviderList.js +1 -0
- package/package.json +1 -1
package/build/util/indexer.js
CHANGED
|
@@ -340,6 +340,8 @@ async function getTokenTransfers({ chain = "ethereum", fromAddressFilter, fromBl
|
|
|
340
340
|
if (tokens) {
|
|
341
341
|
if (typeof tokens === "string")
|
|
342
342
|
tokens = [tokens];
|
|
343
|
+
if (!Array.isArray(tokens))
|
|
344
|
+
throw new Error("tokens must be a string or an array of strings");
|
|
343
345
|
tokens = tokens.join(",").toLowerCase();
|
|
344
346
|
}
|
|
345
347
|
if (target)
|