forked from TrueCloudLab/frostfs-node
21 lines
396 B
Go
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 := deployNNS(wCtx, updateMethodName); err != nil {
|
|
return err
|
|
}
|
|
|
|
return updateContractsInternal(wCtx)
|
|
}
|