diff --git a/x/auction/types/genesis.go b/x/auction/types/genesis.go index ccf75c8e..12eb5322 100644 --- a/x/auction/types/genesis.go +++ b/x/auction/types/genesis.go @@ -20,7 +20,7 @@ type GenesisAuctions []GenesisAuction // GenesisState is auction state that must be provided at chain genesis. type GenesisState struct { NextAuctionID uint64 `json:"next_auction_id" yaml:"next_auction_id"` - Params Params `json:"auction_params" yaml:"auction_params"` + Params Params `json:"params" yaml:"params"` Auctions GenesisAuctions `json:"genesis_auctions" yaml:"genesis_auctions"` } @@ -50,7 +50,7 @@ func (gs GenesisState) IsEmpty() bool { return gs.Equal(GenesisState{}) } -// ValidateGenesis validates genesis inputs. It returns error if validation of any input fails. +// Validate validates genesis inputs. It returns error if validation of any input fails. func (gs GenesisState) Validate() error { if err := gs.Params.Validate(); err != nil { return err diff --git a/x/pricefeed/types/genesis.go b/x/pricefeed/types/genesis.go index 775143c1..4bcba82c 100644 --- a/x/pricefeed/types/genesis.go +++ b/x/pricefeed/types/genesis.go @@ -6,7 +6,7 @@ import ( // GenesisState - pricefeed state that must be provided at genesis type GenesisState struct { - Params Params `json:"asset_params" yaml:"asset_params"` + Params Params `json:"params" yaml:"params"` PostedPrices []PostedPrice `json:"posted_prices" yaml:"posted_prices"` }