Skip to content

Commit

Permalink
Adjust tonstorage util
Browse files Browse the repository at this point in the history
Signed-off-by: KayleCoder <[email protected]>
  • Loading branch information
KayleCoder committed Jul 31, 2024
1 parent 03e23bf commit db9c40a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/merkle/tonsutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ export async function addTonBag({
files,
donwload_all,
}),
}).then((res: Response) => {
if (res.status == 200) {
return res.json()
} else {
throw new Error(`Call storage api failed: ${res.status}`)
}
});
}

Expand Down

0 comments on commit db9c40a

Please sign in to comment.