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

Misc fixes to texts #1590

Merged
merged 8 commits into from
Apr 12, 2024
Merged

Misc fixes to texts #1590

merged 8 commits into from
Apr 12, 2024

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Apr 12, 2024

How the warning looks now:

image

///
/// This only adds extra ink! linting checks. Basic clippy and ink! lints which we
/// are deem important are run anyways.
/// Basic clippy lints are deemed important and run anyways.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also skip the clippy lints by default, we can do that in a follow-up. Makes it way easier to understand what build --lint does.

A third party won't be able to confirm that your uploaded contract Wasm blob \
matches a particular contract source code.\n\n\
You can use `cargo contract build --verifiable` to make the contract verifiable.\n\
See https://use.ink/basics/contract-verification for more info.",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm about to change ink-docs so that this URI will work.

@@ -369,12 +371,13 @@ where

/// Prompt the user to confirm the upload of unverifiable code to the production chain.
pub fn prompt_confirm_unverifiable_upload(chain: &str) -> Result<()> {
println!(
"{} (skip with --skip-validate)",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll create a patch release as a follow-up, --skip-validate does not exist.

@@ -148,6 +148,8 @@ pub struct CLIChainOpts {
#[clap(name = "config", long, default_value = "Polkadot")]
config: String,
/// Name of a production chain to be communicated with.
///
/// Available: AlephZero, Astar, Shiden, Krest.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we somehow leverage https://docs.rs/clap/latest/clap/trait.ValueEnum.html to show the options, so we don't have to update this comment? Chances are this comment will become out of date when chains added/removed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that was a good hint. I updated the PR.

@cmichi cmichi merged commit f8972ec into master Apr 12, 2024
10 checks passed
@cmichi cmichi deleted the cmichi-misc-fixes-apr-2024 branch April 12, 2024 13:55
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