Commit 98264a9 1 parent 48a6ae5 commit 98264a9 Copy full SHA for 98264a9
File tree 3 files changed +2
-298
lines changed
modules/core/02-client/client
3 files changed +2
-298
lines changed Original file line number Diff line number Diff line change 1
1
package client
2
2
3
3
import (
4
- "net/http"
5
-
6
- "github.com/cosmos/cosmos-sdk/client"
7
- "github.com/cosmos/cosmos-sdk/types/rest"
8
4
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
9
- govrest "github.com/cosmos/cosmos-sdk/x/gov/client/rest"
10
5
11
6
"github.com/cosmos/ibc-go/v4/modules/core/02-client/client/cli"
12
7
)
13
8
14
9
var (
15
- UpdateClientProposalHandler = govclient .NewProposalHandler (cli .NewCmdSubmitUpdateClientProposal , emptyRestHandler )
16
- UpgradeProposalHandler = govclient .NewProposalHandler (cli .NewCmdSubmitUpgradeProposal , emptyRestHandler )
10
+ UpdateClientProposalHandler = govclient .NewProposalHandler (cli .NewCmdSubmitUpdateClientProposal )
11
+ UpgradeProposalHandler = govclient .NewProposalHandler (cli .NewCmdSubmitUpgradeProposal )
17
12
)
18
-
19
- func emptyRestHandler (client.Context ) govrest.ProposalRESTHandler {
20
- return govrest.ProposalRESTHandler {
21
- SubRoute : "unsupported-ibc-client" ,
22
- Handler : func (w http.ResponseWriter , r * http.Request ) {
23
- rest .WriteErrorResponse (w , http .StatusBadRequest , "Legacy REST Routes are not supported for IBC proposals" )
24
- },
25
- }
26
- }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import (
30
30
"github.com/cosmos/cosmos-sdk/version"
31
31
"github.com/cosmos/cosmos-sdk/x/auth"
32
32
"github.com/cosmos/cosmos-sdk/x/auth/ante"
33
- authrest "github.com/cosmos/cosmos-sdk/x/auth/client/rest"
34
33
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
35
34
authsims "github.com/cosmos/cosmos-sdk/x/auth/simulation"
36
35
authtx "github.com/cosmos/cosmos-sdk/x/auth/tx"
@@ -760,8 +759,6 @@ func (app *SimApp) SimulationManager() *module.SimulationManager {
760
759
func (app * SimApp ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
761
760
clientCtx := apiSvr .ClientCtx
762
761
rpc .RegisterRoutes (clientCtx , apiSvr .Router )
763
- // Register legacy tx routes.
764
- authrest .RegisterTxRoutes (clientCtx , apiSvr .Router )
765
762
// Register new tx routes from grpc-gateway.
766
763
authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
767
764
// Register new tendermint queries routes from grpc-gateway.
You can’t perform that action at this time.
0 commit comments