You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think we should make the inner client public. We don't want anyone to change the client during the running program (what happens e. g. with subscriptions, when I exchange the client? What happens with running processes? We would have to handle all these cases.).
But adding a constructor which takes a custom JsonrpseeClient is fine. I don't see any problem with that.
E.g. add new function to create a
JsonrpseeClient
wrapper but with a user defined client here:substrate-api-client/src/rpc/jsonrpsee_client/mod.rs
Lines 35 to 50 in 3098812
Example:
I'd also propose to make the inner client public - then the user may change settings any time.
The text was updated successfully, but these errors were encountered: