frostfs-node/cmd/neofs-adm/internal/modules/morph/update.go
Evgenii Stratonikov 4ccb3d05d8 [#835] neofs-adm: rename contract update method
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2021-09-30 20:57:24 +03:00

21 lines
396 B
Go

package morph
import (
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
func updateContracts(cmd *cobra.Command, _ []string) error {
wCtx, err := newInitializeContext(cmd, viper.GetViper())
if err != nil {
return fmt.Errorf("initialization error: %w", err)
}
if err := wCtx.deployContracts(updateMethodName); err != nil {
return err
}
return wCtx.deployNNS("update")
}