-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[CLI] Direct users to dev docs for testnet faucet, improve messaging #15545
Conversation
⏱️ 1h 59m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
3afb78b
to
4533f81
Compare
crates/aptos/src/common/types.rs
Outdated
return Err(CliError::CommandArgumentError("There is no faucet for mainnet. Please create and fund the account by transferring funds from another account. If you are confident you want to use a faucet, set --faucet-url or add a faucet URL to .aptos/config.yaml for the current profile".to_string())); | ||
}, | ||
Some(Network::Testnet) => { | ||
return Err(CliError::CommandArgumentError("To get testnet APT you must visit https://learn.aptoslabs.com/faucet. If you are confident you want to use a faucet programatically, set --faucet-url or add a faucet URL to .aptos/config.yaml for the current profile".to_string())); |
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.
There is a typo in the error message - programatically
should be spelled programmatically
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
c22d89e
to
3461ad3
Compare
eprint!("Press [Enter] to go there now > "); | ||
read_line("Confirmation")?; | ||
open::that(&mint_site_url).map_err(|err| { | ||
CliError::UnexpectedError(format!("Failed to open minting site: {}", 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.
hmm interesting, let's try it out and see if people don't like it
3461ad3
to
6087ac3
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
Description
We are no longer running a directly accessible faucet for testnet, users must use the minting page at the dev docs: https://aptos.dev/network/faucet. This PR updates the CLI to indicate that. I also improve some of the messaging, e.g. to make it clear that for some networks, creating the account in the CLI doesn't necessarily create the account on chain.
How Has This Been Tested?
New profile on testnet:
With
--assume-yes
set:New profile on devnet:
With
--faucet-url
set for devnet:New profile on mainnet:
Fund account on testnet:
With
--faucet-url
set:Fund account on devnet:
Fund account on mainnet:
Key Areas to Review
See if you can pick up any combination of args I might've missed in my testing.
Type of Change
Which Components or Systems Does This Change Impact?
Checklist