Skip to content

Commit

Permalink
chore: add name to ResourceNotFoundRpcErrorType
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Aug 6, 2024
1 parent 738ff3f commit 91aafc0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-moles-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added `name` to `ResourceNotFoundRpcErrorType`
23 changes: 15 additions & 8 deletions pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions src/errors/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ export class InvalidInputRpcError extends RpcError {
*/
export type ResourceNotFoundRpcErrorType = ResourceNotFoundRpcError & {
code: -32001
name: 'ResourceNotFoundRpcError'
}
export class ResourceNotFoundRpcError extends RpcError {
override name = 'ResourceNotFoundRpcError'
Expand Down

0 comments on commit 91aafc0

Please sign in to comment.