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)
|
|
|
|
}
|
|
|
|
|
2021-10-07 12:09:40 +00:00
|
|
|
if err := wCtx.deployNNS(updateMethodName); err != nil {
|
2021-08-06 11:28:07 +00:00
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
2021-12-27 10:26:22 +00:00
|
|
|
return wCtx.updateContracts()
|
2021-08-06 11:28:07 +00:00
|
|
|
}
|