Skip to content

Commit

Permalink
cherry pick #23300
Browse files Browse the repository at this point in the history
  • Loading branch information
caseylove committed Jan 13, 2025
1 parent 1cff1c6 commit 48f5714
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x/accounts/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (

"cosmossdk.io/collections"
"cosmossdk.io/core/appmodule"
"cosmossdk.io/core/codec"
"cosmossdk.io/core/registry"
"cosmossdk.io/schema"
"cosmossdk.io/x/accounts/cli"
v1 "cosmossdk.io/x/accounts/v1"

"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/types/address"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)
Expand Down Expand Up @@ -66,7 +66,11 @@ func (am AppModule) RegisterServices(registrar grpc.ServiceRegistrar) error {
// App module genesis

func (am AppModule) DefaultGenesis() json.RawMessage {
return am.cdc.MustMarshalJSON(&v1.GenesisState{})
data, err := am.cdc.MarshalJSON(&v1.GenesisState{})
if err != nil {
panic(err)
}
return data
}

func (am AppModule) ValidateGenesis(message json.RawMessage) error {
Expand Down

0 comments on commit 48f5714

Please sign in to comment.