@zubari/sdk 0.5.9 → 0.5.10

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.
@@ -1330,7 +1330,9 @@ function parseChainError(chain, errorMessage) {
1330
1330
  function isBrowser() {
1331
1331
  return typeof window !== "undefined" && typeof window.document !== "undefined";
1332
1332
  }
1333
- var dynamicImport = new Function("specifier", "return import(specifier)");
1333
+ async function dynamicImport(specifier) {
1334
+ return import(specifier);
1335
+ }
1334
1336
  async function canUseNativeWdk() {
1335
1337
  if (isBrowser()) {
1336
1338
  return false;
@@ -1839,7 +1841,9 @@ async function getPriceForChain(chain) {
1839
1841
  const prices = await fetchPrices();
1840
1842
  return prices[chain] || 0;
1841
1843
  }
1842
- var dynamicImport2 = new Function("specifier", "return import(specifier)");
1844
+ async function dynamicImport2(specifier) {
1845
+ return import(specifier);
1846
+ }
1843
1847
  async function loadWdkModules() {
1844
1848
  if (wdkLoaded) return;
1845
1849
  if (wdkLoadError) throw wdkLoadError;