Skip to content

Commit

Permalink
chore: update changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbodnar authored Oct 5, 2022
1 parent 47c2bf2 commit 726b795
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/wild-teachers-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"near-api-js": patch
---

Fix error types. WIth this changes both `JsonRpcProvider.query` and `JsonRpcProvider.sendJsonRpc` methods will return proper error type for these errors: `AccountDoesNotExist`, `AccessKeyDoesNotExist`, `CodeDoesNotExist`, `InvalidNonce`.

An additional fix to `getErrorTypeFromErrorMessage` function. Now `getErrorTypeFromErrorMessage` will not change error type if it already exists.

0 comments on commit 726b795

Please sign in to comment.