Skip to content

Commit

Permalink
re-add RegisterAccountTypeCodec
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Sep 12, 2019
1 parent 3636574 commit da91323
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions x/supply/internal/types/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ import (
"github.com/cosmos/cosmos-sdk/x/supply/exported"
)

var _ authexported.GenesisAccount = (*ModuleAccount)(nil)
var _ exported.ModuleAccountI = (*ModuleAccount)(nil)
var (
_ authexported.GenesisAccount = (*ModuleAccount)(nil)
_ exported.ModuleAccountI = (*ModuleAccount)(nil)
)

func init() {
// Register the ModuleAccount type as a genesis account so that when no
// concrete GenesisAccount types exist, default genesis state will serialize
// correctly.
authtypes.RegisterAccountTypeCodec(&ModuleAccount{}, "cosmos-sdk/ModuleAccount")
}

// ModuleAccount defines an account for modules that holds coins on a pool
type ModuleAccount struct {
Expand Down

0 comments on commit da91323

Please sign in to comment.