Skip to content

Commit

Permalink
more backport
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Dec 13, 2024
1 parent a27c7c2 commit 7b27caf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions testutil/configurator/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,18 @@ func AuthModule() ModuleOption {
}
}

func AuthModuleWithMaccPerms(maccPerms []*authmodulev1.ModuleAccountPermission) ModuleOption {
return func(config *Config) {
config.ModuleConfigs[testutil.AuthModuleName] = &appv1alpha1.ModuleConfig{
Name: testutil.AuthModuleName,
Config: appconfig.WrapAny(&authmodulev1.Module{
Bech32Prefix: "cosmos",
ModuleAccountPermissions: maccPerms,
}),
}
}
}

func ParamsModule() ModuleOption {
return func(config *Config) {
config.ModuleConfigs[testutil.ParamsModuleName] = &appv1alpha1.ModuleConfig{
Expand Down

0 comments on commit 7b27caf

Please sign in to comment.