[#984] neofs-adm: fix contract hash check in NNS

Don't update if the hash is already there.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-11-24 10:27:23 +03:00 committed by LeL
parent 7765ab3f02
commit 98f288c946

View file

@ -91,7 +91,7 @@ func (c *initializeContext) nnsRegisterDomain(nnsHash, expectedHash util.Uint160
if err != nil { if err != nil {
return err return err
} }
if s != expectedHash { if s == expectedHash {
return nil return nil
} }
} }