Skip to content

Commit 5247546

Browse files
committed
fix: Provider.parseError case
1 parent a32dcde commit 5247546

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/thin-scissors-clap.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ox": patch
3+
---
4+
5+
Fixed `Provider.parseError` case.

src/core/Provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export function parseError<
434434
): parseError.ReturnType<error> {
435435
const error_ = RpcResponse.parseError(error)
436436
if (error_ instanceof RpcResponse.InternalError) {
437-
if (!error_.data) return error as never
437+
if (!error_.data) return error_ as never
438438

439439
const { code } = error_.data as RpcResponse.ErrorObject
440440
if (code === DisconnectedError.code)

0 commit comments

Comments
 (0)