diff --git a/dist/esm/index.js b/dist/esm/index.js index 1945755..3edfdc7 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -52,7 +52,7 @@ var getAssets = async (options) => { const address = options.accounts[blockchain]; return fetch(`https://public.depay.fi/accounts/${blockchain}/${address}/assets`) - .catch((error) => { console.log(error); }) + .catch((error) => { console.log(error); resolve(); }) .then((response) => response.json()) .then(async (assets) => { return await ensureNativeTokenAsset({ diff --git a/dist/umd/index.js b/dist/umd/index.js index f7e43a7..003e91a 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -53,7 +53,7 @@ const address = options.accounts[blockchain]; return fetch(`https://public.depay.fi/accounts/${blockchain}/${address}/assets`) - .catch((error) => { console.log(error); }) + .catch((error) => { console.log(error); resolve(); }) .then((response) => response.json()) .then(async (assets) => { return await ensureNativeTokenAsset({ diff --git a/package.json b/package.json index e297a5c..7e1c6fc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-assets", "moduleName": "Web3Assets", - "version": "6.1.2", + "version": "6.1.3", "description": "", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/src/getAssets.js b/src/getAssets.js index a46f47c..dc9989b 100644 --- a/src/getAssets.js +++ b/src/getAssets.js @@ -50,7 +50,7 @@ export default async (options) => { const address = options.accounts[blockchain] return fetch(`https://public.depay.fi/accounts/${blockchain}/${address}/assets`) - .catch((error) => { console.log(error) }) + .catch((error) => { console.log(error); resolve() }) .then((response) => response.json()) .then(async (assets) => { return await ensureNativeTokenAsset({