diff --git a/cmd/neofs-adm/internal/modules/morph/deploy.go b/cmd/neofs-adm/internal/modules/morph/deploy.go index a3029cc0..24c3ad16 100644 --- a/cmd/neofs-adm/internal/modules/morph/deploy.go +++ b/cmd/neofs-adm/internal/modules/morph/deploy.go @@ -95,11 +95,6 @@ func deployContractCmd(cmd *cobra.Command, args []string) error { cs.Manifest.Name) } - err = c.addManifestGroup(cs.Hash, cs) - if err != nil { - return fmt.Errorf("can't sign manifest group: %v", err) - } - w := io.NewBufBinWriter() if err := emitDeploymentArguments(w.BinWriter, args); err != nil { return err diff --git a/cmd/neofs-adm/internal/modules/morph/initialize.go b/cmd/neofs-adm/internal/modules/morph/initialize.go index 1f3d886a..d3516f5c 100644 --- a/cmd/neofs-adm/internal/modules/morph/initialize.go +++ b/cmd/neofs-adm/internal/modules/morph/initialize.go @@ -116,9 +116,12 @@ func newInitializeContext(cmd *cobra.Command, v *viper.Viper) (*initializeContex return nil, err } - w, err := openContractWallet(v, cmd, walletDir) - if err != nil { - return nil, err + var w *wallet.Wallet + if cmd.Name() != "deploy" { + w, err = openContractWallet(v, cmd, walletDir) + if err != nil { + return nil, err + } } var c Client