[#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

@ -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