[#979] adm/subnet: Fix typos

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-12-01 17:29:06 +03:00 committed by LeL
parent dd2998d724
commit 1b698867a7

View file

@ -86,13 +86,18 @@ func initSubnetClient(c *morphsubnet.Client, key *keys.PrivateKey) error {
return initSubnetClientCheckNotary(c, key, false) return initSubnetClientCheckNotary(c, key, false)
} }
const (
// enable notary
flagSubnetNotary = "notary"
)
// initializes morph subnet client with the specified private key. // initializes morph subnet client with the specified private key.
// //
// Parameters are read from: // Parameters are read from:
// * contract address: flagSubnetContract; // * contract address: flagSubnetContract;
// * endpoint: flagSubnetEndpoint. // * endpoint: flagSubnetEndpoint.
// //
// If checkNotary is set, non-notary mode is read from flagSubnetNonNotary. // If checkNotary is set, notary mode is read from flagSubnetNotary.
func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, checkNotary bool) error { func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, checkNotary bool) error {
// read endpoint // read endpoint
endpoint := viper.GetString(flagSubnetEndpoint) endpoint := viper.GetString(flagSubnetEndpoint)
@ -138,11 +143,6 @@ func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, ch
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",