-
Notifications
You must be signed in to change notification settings - Fork 77
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
Extension - Add/Remove Chains (Smoldot v.0.3.x) #428
Conversation
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.
In general I think this is a really good start 👍 The biggest issue I can see so far is that I really don't think we should be sending the spec
message using the method
field of the RPC message. We don't own the JSON RPC protocol - that is the domain of smoldot. We have our own type
field in the MessageToManager
which is designed to ask the background to do something - you should extend that instead and use provider.send()
to send it from the ExtensionProvider
.
Aside: Our logging strategy is going a bit all over the place in the extension, but I don't think you need to fix that in this PR: but we need a ticket for it though.
Add new issue #429 |
…rward' method for propagating it to background
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.
Just one little stray comment to remove, and this is good to merge 👍
Fixes #427