-
Notifications
You must be signed in to change notification settings - Fork 257
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
expose jsonrpc-core client #672
Conversation
There is already an |
yes but this derefs to your custom trait, not |
How about instead of this, the existing You'd still ened to cast from the |
Another, safer, approach for you may just be to clone and keep hold of a copy of the original jsonrpsee I don't mind exposing the |
I've modified the PR with this approach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just to run cargo fmt
to make the CI happy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once fmt is ran and we've fixed our tests; thanks!
Done 🙏🏿 |
We depend on the jsonrpc-core client so we can make typed rpc requests
eg: https://github.com/ComposableFi/hyperspace/blob/311bc18ac6d4b24ed4586ba98552e9e145b0b068/parachain/src/provider.rs#L335-L342