Skip to content

Commit

Permalink
[nspcc-dev#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 authored and aprasolova committed Mar 5, 2022
1 parent 5e1c5f1 commit 806ad07
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 806ad07

Please sign in to comment.