forked from TrueCloudLab/frostfs-node
[#748] neofs-adm: allow to update contracts
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
1ea3463604
commit
33c3f18b4f
5 changed files with 112 additions and 39 deletions
21
cmd/neofs-adm/internal/modules/morph/update.go
Normal file
21
cmd/neofs-adm/internal/modules/morph/update.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
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("migrate"); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return wCtx.setNNS()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue