Skip to content

Commit

Permalink
Merge pull request #90 from tinymanorg/fix/get-raw-box-value
Browse files Browse the repository at this point in the history
Improve error handling of `getRawBoxValue`
  • Loading branch information
fergalwalsh authored Aug 8, 2024
2 parents fcd809f + 1f0897e commit 9d83dd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tinymanorg/tinyman-js-sdk",
"version": "4.0.3",
"version": "4.0.4",
"description": "Tinyman JS SDK",
"author": "Tinyman Core Team",
"license": "MIT",
Expand Down
4 changes: 1 addition & 3 deletions src/governance/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ async function getRawBoxValue(

return value;
} catch (error: any) {
if (
error.message === "Network request error. Received status 404 (): box not found"
) {
if (error.message.includes("box not found")) {
return null;
}

Expand Down

0 comments on commit 9d83dd5

Please sign in to comment.