[#1466] adm: Remove notary flag in for subnet command

It is possible to deduce that information from the network.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-06-02 17:28:01 +03:00 committed by fyrchik
parent 815e02f185
commit 4ed3063212
2 changed files with 3 additions and 12 deletions

View file

@ -21,11 +21,9 @@ $ neofs-adm morph subnet create \
Create subnet request sent successfully. ID: 4223489767. Create subnet request sent successfully. ID: 4223489767.
``` ```
**NOTE:** use `--notary` only in a notary-enabled environment. You need to **NOTE:** in notary-enabled environment you should have a sufficient
have a sufficient notary deposit (not expired, with enough GAS balance). This notary deposit (not expired, with enough GAS balance). Your subnet ID
is the only command that requires an alphabet signature and, therefore, will differ from the example.
the only command that needs `--notary` flag. Your subnet ID will differ
from the example.
The default account in the wallet that has been passed with `-w` flag is the owner The default account in the wallet that has been passed with `-w` flag is the owner
of the just created subnetwork. of the just created subnetwork.

View file

@ -112,11 +112,6 @@ func readSubnetKey(key *keys.PrivateKey) error {
return nil return nil
} }
const (
// enable notary
flagSubnetNotary = "notary"
)
// create subnet command. // create subnet command.
var cmdSubnetCreate = &cobra.Command{ var cmdSubnetCreate = &cobra.Command{
Use: "create", Use: "create",
@ -125,7 +120,6 @@ var cmdSubnetCreate = &cobra.Command{
viperBindFlags(cmd, viperBindFlags(cmd,
flagSubnetWallet, flagSubnetWallet,
flagSubnetAddress, flagSubnetAddress,
flagSubnetNotary,
) )
}, },
RunE: func(cmd *cobra.Command, _ []string) error { RunE: func(cmd *cobra.Command, _ []string) error {
@ -709,7 +703,6 @@ func addCommandInheritPreRun(par *cobra.Command, subs ...*cobra.Command) {
// registers flags and binds sub-commands for subnet commands. // registers flags and binds sub-commands for subnet commands.
func init() { func init() {
cmdSubnetCreate.Flags().Bool(flagSubnetNotary, false, "Flag to create subnet in notary environment")
cmdSubnetCreate.Flags().StringP(flagSubnetWallet, "w", "", "Path to file with wallet") cmdSubnetCreate.Flags().StringP(flagSubnetWallet, "w", "", "Path to file with wallet")
_ = cmdSubnetCreate.MarkFlagRequired(flagSubnetWallet) _ = cmdSubnetCreate.MarkFlagRequired(flagSubnetWallet)
cmdSubnetCreate.Flags().StringP(flagSubnetAddress, "a", "", "Address in the wallet, optional") cmdSubnetCreate.Flags().StringP(flagSubnetAddress, "a", "", "Address in the wallet, optional")