diff --git a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go index bbc60d04..d34c8727 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize_deploy.go @@ -284,6 +284,8 @@ func (c *initializeContext) deployContracts() error { var keysParam []interface{} + baseGroups := alphaCs.Manifest.Groups + // alphabet contracts should be deployed by individual nodes to get different hashes. for i, acc := range c.Accounts { ctrHash := state.CreateContractHash(acc.Contract.ScriptHash(), alphaCs.NEF.Checksum, alphaCs.Manifest.Name) @@ -292,6 +294,12 @@ func (c *initializeContext) deployContracts() error { continue } + alphaCs.Manifest.Groups = baseGroups + err := c.addManifestGroup(ctrHash, alphaCs) + if err != nil { + return fmt.Errorf("can't sign manifest group: %v", err) + } + keysParam = append(keysParam, acc.PrivateKey().PublicKey().Bytes()) params := getContractDeployParameters(alphaCs, c.getAlphabetDeployItems(i, len(c.Wallets)))