-
Notifications
You must be signed in to change notification settings - Fork 170
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
[jsonrpsee types]: provide macro for constructing JsonRpcParams #275
Comments
Maybe it's possible to unify the client |
The problem is that the server-side In order to unify them we would have to explicitly require to that user provide a |
The
JsonRpcParams
are a little boiler-platy to provide as we require the arguments to beserde_json::Value
,Example:
So it would be nice is to provide a macro such as
params_positional!
andparams_object
to avoid that.Perhaps just provide a wrapper on-top of serde_json::json!?
Note: Copy @kianenigma's stuff.
The text was updated successfully, but these errors were encountered: