Skip to content

Commit

Permalink
fix(types): check for HasABCIGenesis in CoreAppModuleBasicAdaptor (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Mar 8, 2024
1 parent f9041cd commit 3382e8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Bug Fixes

* (types) [#19709](https://github.com/cosmos/cosmos-sdk/pull/19709) Fix skip staking genesis export when using `CoreAppModuleAdaptor` / `CoreAppModuleBasicAdaptor` for it.
* (x/auth) [#19549](https://github.com/cosmos/cosmos-sdk/pull/19549) Accept custom get signers when injecting `x/auth/tx`.
* (x/staking) Fix a possible bypass of delegator slashing: [GHSA-86h5-xcpx-cfqc](https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-86h5-xcpx-cfqc)

Expand Down
4 changes: 4 additions & 0 deletions types/module/core_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ func (c coreAppModuleBasicAdaptor) ExportGenesis(ctx sdk.Context, cdc codec.JSON
return mod.ExportGenesis(ctx, cdc)
}

if mod, ok := c.module.(HasABCIGenesis); ok {
return mod.ExportGenesis(ctx, cdc)
}

return nil
}

Expand Down

0 comments on commit 3382e8e

Please sign in to comment.