Skip to content

Commit

Permalink
[#984] neofs-adm: fix contract hash check in NNS
Browse files Browse the repository at this point in the history
Don't update if the hash is already there.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
  • Loading branch information
fyrchik committed Nov 26, 2021
1 parent 4731df9 commit 134bd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/neofs-adm/internal/modules/morph/initialize_nns.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (c *initializeContext) nnsRegisterDomain(nnsHash, expectedHash util.Uint160
if err != nil {
return err
}
if s != expectedHash {
if s == expectedHash {
return nil
}
}
Expand Down

0 comments on commit 134bd19

Please sign in to comment.