[#1683] adm: Do not deploy custom contract with a group

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-08-15 18:27:23 +03:00 committed by fyrchik
parent bbd6b9780f
commit b54f34d7df
2 changed files with 6 additions and 8 deletions

View file

@ -95,11 +95,6 @@ func deployContractCmd(cmd *cobra.Command, args []string) error {
cs.Manifest.Name) 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() w := io.NewBufBinWriter()
if err := emitDeploymentArguments(w.BinWriter, args); err != nil { if err := emitDeploymentArguments(w.BinWriter, args); err != nil {
return err return err

View file

@ -116,10 +116,13 @@ func newInitializeContext(cmd *cobra.Command, v *viper.Viper) (*initializeContex
return nil, err return nil, err
} }
w, err := openContractWallet(v, cmd, walletDir) var w *wallet.Wallet
if cmd.Name() != "deploy" {
w, err = openContractWallet(v, cmd, walletDir)
if err != nil { if err != nil {
return nil, err return nil, err
} }
}
var c Client var c Client
if v.GetString(localDumpFlag) != "" { if v.GetString(localDumpFlag) != "" {