diff --git a/CHANGELOG.md b/CHANGELOG.md index d177e34142..11928d8448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Improvements ### Bug Fixes +* (x/foundation) [\#772](https://github.com/line/lbm-sdk/pull/772) export x/foundation pool ### Breaking Changes diff --git a/x/foundation/keeper/genesis.go b/x/foundation/keeper/genesis.go index 7d6b107a46..45fa6bb0be 100644 --- a/x/foundation/keeper/genesis.go +++ b/x/foundation/keeper/genesis.go @@ -66,6 +66,7 @@ func (k Keeper) ExportGenesis(ctx sdk.Context) *foundation.GenesisState { Proposals: proposals, Votes: votes, Authorizations: k.GetGrants(ctx), + Pool: k.GetPool(ctx), GovMintLeftCount: k.GetGovMintLeftCount(ctx), } } diff --git a/x/foundation/keeper/genesis_test.go b/x/foundation/keeper/genesis_test.go index d3bed1c32e..98b3a1b1e1 100644 --- a/x/foundation/keeper/genesis_test.go +++ b/x/foundation/keeper/genesis_test.go @@ -170,6 +170,23 @@ func TestImportExportGenesis(t *testing.T) { }, }, }, + "pool": { + init: &foundation.GenesisState{ + Params: foundation.DefaultParams(), + Foundation: foundation.DefaultFoundation(), + Pool: foundation.Pool{ + Treasury: sdk.NewDecCoins(sdk.NewDecCoin(sdk.DefaultBondDenom, sdk.OneInt())), + }, + }, + valid: true, + export: &foundation.GenesisState{ + Params: foundation.DefaultParams(), + Foundation: foundation.DefaultFoundation(), + Pool: foundation.Pool{ + Treasury: sdk.NewDecCoins(sdk.NewDecCoin(sdk.DefaultBondDenom, sdk.OneInt())), + }, + }, + }, "member of long metadata": { init: &foundation.GenesisState{ Params: foundation.DefaultParams(),