2021-08-06 11:28:07 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2021-09-21 12:21:38 +00:00
|
|
|
return wCtx.deployNNS("update")
|
2021-08-06 11:28:07 +00:00
|
|
|
}
|