-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix Subscan URL #14
base: dev
Are you sure you want to change the base?
Fix Subscan URL #14
Conversation
How does this fix the URL? Is it only showing incorrectly in the report? |
Yes. |
Similar question to pablo. I have little insight into what is broken/being fixed |
@@ -267,7 +267,7 @@ impl From<RawData> for Report { | |||
report.add_raw_text(format!( | |||
"{} <b><a href=\"https://{}.subscan.io/validator/{}\">{}</a></b>", | |||
is_active_desc, | |||
data.network.name.to_lowercase().trim().replace(" ", ""), | |||
data.network.name.to_lowercase().trim().replace(" ", "-"), |
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.
The immediate patch looks good to me, hoever all of this looks very fragile.
If the name becomes "Creditcoin 3" then the URL will be incorrect again.
Q: where does the name come from? Is if hard-coded somewhere in the source code?
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.
Needs rebase onto latest dev
in order to pick-up changes around CI improvements.
1 pending question needs answer.
No description provided.