-
Notifications
You must be signed in to change notification settings - Fork 345
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
Deprecate generate-account-key in favour of generate-moonbeam-key #3090
base: master
Are you sure you want to change the base?
Conversation
WASM runtime size check:Compared to target branchMoonbase runtime: 2260 KB (no changes) ✅ Moonbeam runtime: 2248 KB (no changes) ✅ Moonriver runtime: 2240 KB (no changes) ✅ Compared to latest release (runtime-3400)Moonbase runtime: 2260 KB (+232 KB compared to latest release) Moonbeam runtime: 2248 KB (+236 KB compared to latest release) Moonriver runtime: 2240 KB (+228 KB compared to latest release) |
Coverage Report@@ Coverage Diff @@
## master rq/remove-moonkey +/- ##
====================================================
Coverage 74.58% 74.58% 0.00%
- Files 375 374 -1
+ Lines 95682 95686 +4
====================================================
Hits 71359 71359
+ Misses 24323 24327 +4
|
@@ -372,7 +373,10 @@ pub enum KeyCmd { | |||
#[clap(flatten)] | |||
BaseCli(sc_cli::KeySubcommand), | |||
/// Generate an Ethereum account. | |||
#[clap(about = "This command is deprecated, please use `generate-moonbeam-key` instead.")] |
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.
Can we make it so it points to this PR with explanation about why it is deprecated and the difference between the 2.
@@ -53,7 +53,11 @@ impl GenerateAccountKey { | |||
|
|||
// Retrieves the seed from the mnemonic | |||
let seed = Seed::new(&mnemonic, ""); | |||
let derivation_path = format!("m/44'/60'/0'/0/{}", self.account_index.unwrap_or(0)); | |||
let derivation_path = if deprecated { |
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.
We should allow to pass a --network moonbeam|moonriver|moonbase|ethereum
What does it do?
generate-account-key
in favour ofgenerate-moonbeam-key
. Which uses the correctcoin_type
.moonkey
utilitymoonbeam key generate-account-key
will now output a warning: