Skip to content

Commit

Permalink
v6.1.3: continue resolving failed asset request
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Apr 13, 2022
1 parent 5a01764 commit 805e2a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion dist/umd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/getAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 805e2a5

Please sign in to comment.