diff --git a/x/rollapp/client/cli/cli_test.go b/x/rollapp/client/cli/cli_test.go index b08162449..f58e45926 100644 --- a/x/rollapp/client/cli/cli_test.go +++ b/x/rollapp/client/cli/cli_test.go @@ -46,7 +46,7 @@ func TestGetTxCmd(t *testing.T) { assert.True(t, cmd.Flags().HasFlags()) } -func TestCmdCreateIRO(t *testing.T) { +func TestCmdCreateRollapp(t *testing.T) { addr := sdk.AccAddress("testAddress").String() // Create a temporary file for metadata diff --git a/x/rollapp/client/cli/tx.go b/x/rollapp/client/cli/tx.go index 227e3f3dc..657aed192 100644 --- a/x/rollapp/client/cli/tx.go +++ b/x/rollapp/client/cli/tx.go @@ -22,7 +22,6 @@ func GetTxCmd() *cobra.Command { cmd.AddCommand(CmdCreateRollapp()) cmd.AddCommand(CmdUpdateRollapp()) cmd.AddCommand(CmdTransferOwnership()) - cmd.AddCommand(CmdUpdateState()) cmd.AddCommand(CmdAddApp()) cmd.AddCommand(CmdUpdateApp()) cmd.AddCommand(CmdRemoveApp()) diff --git a/x/rollapp/client/cli/tx_update_state.go b/x/rollapp/client/cli/tx_update_state.go deleted file mode 100644 index 77bea1ae1..000000000 --- a/x/rollapp/client/cli/tx_update_state.go +++ /dev/null @@ -1,61 +0,0 @@ -package cli - -import ( - "encoding/json" - "strconv" - - "github.com/cosmos/cosmos-sdk/client" - "github.com/cosmos/cosmos-sdk/client/flags" - "github.com/cosmos/cosmos-sdk/client/tx" - "github.com/spf13/cast" - "github.com/spf13/cobra" - - "github.com/dymensionxyz/dymension/v3/x/rollapp/types" -) - -var _ = strconv.Itoa(0) - -func CmdUpdateState() *cobra.Command { - cmd := &cobra.Command{ - Use: "update-state [rollapp-id] [start-height] [num-blocks] [da-path] [bds]", - Short: "Update rollapp state", - Args: cobra.ExactArgs(6), - RunE: func(cmd *cobra.Command, args []string) (err error) { - argRollappId := args[0] - argStartHeight, err := cast.ToUint64E(args[1]) - if err != nil { - return err - } - argNumBlocks, err := cast.ToUint64E(args[2]) - if err != nil { - return err - } - argDAPath := args[3] - argBDs := new(types.BlockDescriptors) - err = json.Unmarshal([]byte(args[5]), argBDs) - if err != nil { - return err - } - - clientCtx, err := client.GetClientTxContext(cmd) - if err != nil { - return err - } - - msg := types.NewMsgUpdateState( - clientCtx.GetFromAddress().String(), - argRollappId, - argDAPath, - argStartHeight, - argNumBlocks, - argBDs, - ) - - return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg) - }, - } - - flags.AddTxFlagsToCmd(cmd) - - return cmd -}