Skip to content
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

Merged
merged 5 commits into from
Jan 18, 2024
Merged

Add some Inner Ring UX improvements #2673

merged 5 commits into from
Jan 18, 2024

Conversation

cthulhu-rider
Copy link
Contributor

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (5c66479) 28.48% compared to head (12f95f2) 28.48%.

Files Patch % Lines
pkg/innerring/innerring.go 0.00% 7 Missing ⚠️
pkg/morph/deploy/funds.go 0.00% 6 Missing ⚠️
pkg/morph/client/nns.go 0.00% 5 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@cthulhu-rider cthulhu-rider marked this pull request as draft December 8, 2023 11:08
@roman-khimov
Copy link
Member

Looks legit.

@cthulhu-rider cthulhu-rider marked this pull request as ready for review December 18, 2023 18:00
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]>
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]>
}
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)
Copy link
Member

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"

Copy link
Contributor Author

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

@roman-khimov roman-khimov merged commit bf029cf into master Jan 18, 2024
7 of 11 checks passed
@roman-khimov roman-khimov deleted the ir-config branch January 18, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants