fix(types): check for HasABCIGenesis in CoreAppModuleBasicAdaptor (#19709)

This commit is contained in:
Julien Robert 2024-03-08 21:38:02 +01:00 committed by GitHub
parent f9041cde5c
commit 3382e8ea82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -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)

View File

@ -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
}