[#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>
experimental
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.
```
**NOTE:** use `--notary` only in a notary-enabled environment. You need to
have a sufficient notary deposit (not expired, with enough GAS balance). This
is the only command that requires an alphabet signature and, therefore,
the only command that needs `--notary` flag. Your subnet ID will differ
from the example.
**NOTE:** in notary-enabled environment you should have a sufficient
notary deposit (not expired, with enough GAS balance). Your subnet ID
will differ from the example.
The default account in the wallet that has been passed with `-w` flag is the owner
of the just created subnetwork.

View File

@ -112,11 +112,6 @@ func readSubnetKey(key *keys.PrivateKey) error {
return nil
}
const (
// enable notary
flagSubnetNotary = "notary"
)
// create subnet command.
var cmdSubnetCreate = &cobra.Command{
Use: "create",
@ -125,7 +120,6 @@ var cmdSubnetCreate = &cobra.Command{
viperBindFlags(cmd,
flagSubnetWallet,
flagSubnetAddress,
flagSubnetNotary,
)
},
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.
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.MarkFlagRequired(flagSubnetWallet)
cmdSubnetCreate.Flags().StringP(flagSubnetAddress, "a", "", "Address in the wallet, optional")