-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add some Inner Ring UX improvements #2673
Conversation
cthulhu-rider
commented
Dec 8, 2023
- inspired by Try autoupdating the network #2650
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2673 +/- ##
==========================================
- Coverage 28.48% 28.48% -0.01%
==========================================
Files 413 413
Lines 31966 31977 +11
==========================================
+ Hits 9106 9109 +3
- Misses 22079 22087 +8
Partials 781 781 ☔ View full report in Codecov by Sentry. |
Looks legit. |
e65d4a5
to
1ec45e1
Compare
In 1a5bb64 `endpoint.client` section was replaced by `endpoints` but `consensus` continued to refer the old one. Also mention local consensus option in the `morph.endpoints` itself. Signed-off-by: Leonard Lyubich <[email protected]>
Inner Ring app requires either `morph.endpoints` or `morph.consensus` to be configured. Previously, when user forgot to set both sections, the app responded with: ``` invalid blockchain configuration: missing root section 'morph.consensus' ``` This could confuse the app user: maybe he wants the remote consensus, just set FS chain RPC endpoints incorrectly, why local consensus is required then? From now failure will be: ``` invalid consensus configuration: either 'morph.endpoints' or 'morph.consensus' must be configured ``` Refs #2650. Signed-off-by: Leonard Lyubich <[email protected]>
Signed-off-by: Leonard Lyubich <[email protected]>
These errors are user-facing. For example, when NNS contract is missing, from: ``` could not create RPC client: scope setup: InferHash: Unknown contract (-102) ``` to: ``` could not create RPC client: scope setup: resolve NNS contract address: Unknown contract (-102) ``` Other contracts' errors also made clearer. Refs #2650. Signed-off-by: Leonard Lyubich <[email protected]>
It's better to observe what's going on, especially with funds. Signed-off-by: Leonard Lyubich <[email protected]>
1ec45e1
to
12f95f2
Compare
} | ||
cntHash, err := nnsReader.ResolveFSContract(nns.NameContainer) | ||
if err != nil { | ||
return fmt.Errorf("resolving container: %w", err) | ||
return fmt.Errorf("resolve Container contract address by NNS domain name %q: %w", nns.NameContainer, err) |
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.
"NNS domain name" confuses me. seems like it is about some ".nns"
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.
not sure i got ur point, pls write message text u suggest