Require proto.Message in client.Context.PrintOutput (#6999)
* Enable proto JSON json for cli tx & query * WIP on tests * Test fixes, cleanup * Cleanup * Address review comments * Update client/context.go Co-authored-by: Anil Kumar Kammari <anil@vitwit.com> * Fixes Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Anil Kumar Kammari <anil@vitwit.com>
This commit is contained in:
co-authored by
Anil Kumar Kammari
Federico Kunze
parent
20c80cfd44
commit
7de8ef75b3
@@ -19,7 +19,8 @@ type (
|
||||
)
|
||||
|
||||
// ParseCommunityPoolSpendProposalJSON reads and parses a CommunityPoolSpendProposalJSON from a file.
|
||||
func ParseCommunityPoolSpendProposalJSON(cdc codec.JSONMarshaler, proposalFile string) (CommunityPoolSpendProposalJSON, error) {
|
||||
// TODO: migrate this to protobuf
|
||||
func ParseCommunityPoolSpendProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (CommunityPoolSpendProposalJSON, error) {
|
||||
proposal := CommunityPoolSpendProposalJSON{}
|
||||
|
||||
contents, err := ioutil.ReadFile(proposalFile)
|
||||
|
||||
Reference in New Issue
Block a user