Skip to content

Commit

Permalink
Manually update error code (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlovdog authored Aug 24, 2024
1 parent e25ee21 commit 4a22f49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cli/customTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export function customTransport(
)
throw new RpcRequestError({
body,
error,
error: {
...error,
// 24 Aug 2024, etherlink throws -32003 error code for eth_call
code: (method === 'eth_call' && error.code === -32003) ? 3 : error.code,
},
url: url
})
}
Expand Down

0 comments on commit 4a22f49

Please sign in to comment.