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

Fix Subscan URL #14

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Fix Subscan URL #14

wants to merge 1 commit into from

Conversation

frankli-dev
Copy link

No description provided.

@frankli-dev frankli-dev self-assigned this Mar 15, 2024
@frankli-dev frankli-dev requested a review from pLabarta March 15, 2024 17:11
@pLabarta
Copy link

How does this fix the URL? Is it only showing incorrectly in the report?

@frankli-dev
Copy link
Author

How does this fix the URL? Is it only showing incorrectly in the report?

Yes.

@zacharyfrederick
Copy link

Similar question to pablo. I have little insight into what is broken/being fixed

@frankli-dev
Copy link
Author

image

Just fixing the subscan url in the report.

@@ -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(" ", "-"),

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?

Copy link

@atodorov atodorov left a 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.

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.

4 participants