diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index 0c9db3d32..2815e52d2 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -215,7 +215,7 @@ func (c *initializeContext) deployContracts(method string) error { } for _, ctrName := range contractList { - cs := c.Contracts[ctrName] + cs := c.getContract(ctrName) ctrHash := cs.Hash @@ -260,6 +260,15 @@ func (c *initializeContext) deployContracts(method string) error { if err := c.sendCommitteeTx(res.Script, res.GasConsumed); err != nil { return err } + + if method == updateMethodName && methodCur == deployMethodName { + // same actions are done in initializeContext.setNNS, can be unified + domain := ctrName + ".neofs" + if err := c.nnsRegisterDomain(nnsCs.Hash, cs.Hash, domain); err != nil { + return err + } + c.Command.Printf("NNS: Set %s -> %s\n", domain, cs.Hash.StringLE()) + } } return c.awaitTx()