From 2e4726b1fbd4fddfdf5e307e186a0bc3cceae45e Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Tue, 3 Oct 2023 19:25:39 +0200 Subject: [PATCH] revert bank autocli --- x/bank/autocli.go | 12 ------------ x/bank/client/cli/tx.go | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/x/bank/autocli.go b/x/bank/autocli.go index 3f1a3b7c189..25d65feecb9 100644 --- a/x/bank/autocli.go +++ b/x/bank/autocli.go @@ -87,17 +87,5 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, }, - Tx: &autocliv1.ServiceCommandDescriptor{ - Service: bankv1beta1.Msg_ServiceDesc.ServiceName, - RpcCommandOptions: []*autocliv1.RpcCommandOptions{ - { - RpcMethod: "Send", - Use: "send [from_key_or_address] [to_address] [amount] [flags]", - Short: "Send coins from one account to another", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "from_address"}, {ProtoField: "to_address"}, {ProtoField: "amount"}}, - }, - }, - EnhanceCustomCommand: true, - }, } } diff --git a/x/bank/client/cli/tx.go b/x/bank/client/cli/tx.go index d7200c0241f..11beeabd137 100644 --- a/x/bank/client/cli/tx.go +++ b/x/bank/client/cli/tx.go @@ -29,6 +29,7 @@ func NewTxCmd(ac address.Codec) *cobra.Command { } txCmd.AddCommand( + NewSendTxCmd(ac), NewMultiSendTxCmd(ac), )