From 1b698867a734d425b81536516e10c26cfb35248c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 1 Dec 2021 17:29:06 +0300 Subject: [PATCH] [#979] adm/subnet: Fix typos Signed-off-by: Leonard Lyubich --- cmd/neofs-adm/internal/modules/morph/subnet.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/neofs-adm/internal/modules/morph/subnet.go b/cmd/neofs-adm/internal/modules/morph/subnet.go index 877bc6bf7..88e89dd64 100644 --- a/cmd/neofs-adm/internal/modules/morph/subnet.go +++ b/cmd/neofs-adm/internal/modules/morph/subnet.go @@ -86,13 +86,18 @@ func initSubnetClient(c *morphsubnet.Client, key *keys.PrivateKey) error { return initSubnetClientCheckNotary(c, key, false) } +const ( + // enable notary + flagSubnetNotary = "notary" +) + // initializes morph subnet client with the specified private key. // // Parameters are read from: // * contract address: flagSubnetContract; // * 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 { // read endpoint endpoint := viper.GetString(flagSubnetEndpoint) @@ -138,11 +143,6 @@ func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, ch return nil } -const ( - // enable notary - flagSubnetNotary = "notary" -) - // create subnet command. var cmdSubnetCreate = &cobra.Command{ Use: "create",