-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use dummy handler for evm proposal handler
- Loading branch information
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
package client | ||
|
||
import ( | ||
"fmt" | ||
"net/http" | ||
|
||
"github.com/cosmos/cosmos-sdk/client" | ||
govclient "github.com/cosmos/cosmos-sdk/x/gov/client" | ||
"github.com/cosmos/cosmos-sdk/x/gov/client/rest" | ||
"github.com/palomachain/paloma/x/evm/client/cli" | ||
) | ||
|
||
var ProposalHandler = govclient.NewProposalHandler(cli.CmdEvmChainProposalHandler, nil) | ||
var ProposalHandler = govclient.NewProposalHandler(cli.CmdEvmChainProposalHandler, func(client.Context) rest.ProposalRESTHandler { | ||
return rest.ProposalRESTHandler{ | ||
SubRoute: "evm-not-implemented", | ||
Handler: func(w http.ResponseWriter, _ *http.Request) { | ||
w.WriteHeader(http.StatusNotImplemented) | ||
fmt.Fprintf(w, "please use cli to issue a new EVM proposal or make a new github ticket if you wish to have this functionality via rest") | ||
}, | ||
} | ||
}) |