From 616b07ff6bd7c1a4888bbb82c56ade25024e7f4d Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Fri, 13 Oct 2017 13:34:47 +0400 Subject: [PATCH] make AppOptions an interface{} --- types/genesis.go | 2 +- types/validator_set_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/genesis.go b/types/genesis.go index 797aff9cc..e33f60258 100644 --- a/types/genesis.go +++ b/types/genesis.go @@ -29,7 +29,7 @@ type GenesisDoc struct { ConsensusParams *ConsensusParams `json:"consensus_params,omitempty"` Validators []GenesisValidator `json:"validators"` AppHash data.Bytes `json:"app_hash"` - AppOptions *json.RawMessage `json:"app_options,omitempty"` + AppOptions interface{} `json:"app_options,omitempty"` } // SaveAs is a utility method for saving GenensisDoc as a JSON file. diff --git a/types/validator_set_test.go b/types/validator_set_test.go index 71a1993e7..69f25d620 100644 --- a/types/validator_set_test.go +++ b/types/validator_set_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - cmn "github.com/tendermint/tmlibs/common" "github.com/tendermint/go-crypto" + cmn "github.com/tendermint/tmlibs/common" ) func randPubKey() crypto.PubKey {