[#979] adm/subnet: Fix handling of non-notary flag in initClient

`initSubnetClient` must call `EnableNotarySupport` only if non-notary
flag is not set.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-11-30 20:34:19 +03:00 committed by LeL
parent ef57ba3fec
commit 6facc26cb9

View file

@ -111,7 +111,7 @@ func initSubnetClient(c *morphsubnet.Client, key *keys.PrivateKey) error {
nonNotary := viper.GetBool(flagSubnetNonNotary)
if nonNotary {
if !nonNotary {
err = cMorph.EnableNotarySupport()
if err != nil {
return fmt.Errorf("enable notary support: %w", err)