-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make RpcError generic #692
Comments
We'll have to have a think about that; I do see that we lose some information now which sucks, but adding a generic parameter would propagate through the entire codebase again, so it'd definitely be preferably to avoid that if we can! Perhaps we should box the error if possible into a |
To quickly unblock the transition to |
I want to avoid comparing strings for obvious reasons, but we also need to parse the JsonRPC error object in some cases. The approach you have suggested @jsdw makes sense to me! |
@gregdhill would you be able to check out #694 and confirm that it addresses your needs? |
I am unable to upgrade from
0.23.0
to0.24.0
because we lost theRpcError
type (here) propagated fromjsonrpsee
. We use this to specifically match custom errors for transaction invalidity and for when the background service needs to be restarted. Instead of converting this error into a string theRpcClientT
trait should have a generic parameter for the error.The text was updated successfully, but these errors were encountered: