feat(mint): add env bundler to mint module (#19398)

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
samricotta
2024-02-13 23:17:13 +00:00
committed by GitHub
co-authored by Marko
parent 8fb9ca87b2
commit 33868606a8
18 changed files with 70 additions and 39 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func Example() {
// here bankkeeper and staking keeper is nil because we are not testing them
// subspace is nil because we don't test params (which is legacy anyway)
mintKeeper := mintkeeper.NewKeeper(encodingCfg.Codec, runtime.NewKVStoreService(keys[minttypes.StoreKey]), nil, accountKeeper, nil, authtypes.FeeCollectorName, authority)
mintKeeper := mintkeeper.NewKeeper(encodingCfg.Codec, runtime.NewEnvironment(runtime.NewKVStoreService(keys[minttypes.StoreKey]), logger), nil, accountKeeper, nil, authtypes.FeeCollectorName, authority)
mintModule := mint.NewAppModule(encodingCfg.Codec, mintKeeper, accountKeeper, nil)
// create the application and register all the modules from the previous step