Skip to content

Commit

Permalink
refactor: Skipping the feeabstypes.ModuleName
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnt1811 committed Jun 8, 2024
1 parent dd1c170 commit 9c0db8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,10 +1031,12 @@ func (app *UmeeApp) LoadHeight(height int64) error {
func (app *UmeeApp) ModuleAccountAddrs() map[string]bool {
modAccAddrs := make(map[string]bool)
for acc := range maccPerms {
// Skip the feeabstypes.ModuleName to allow the feeabs module to receive tokens
if acc == feeabstypes.ModuleName {
continue
}
modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true
}
// allow feeabs module to receive tokens
delete(modAccAddrs, authtypes.NewModuleAddress(feeabstypes.ModuleName).String())

return modAccAddrs
}
Expand Down

0 comments on commit 9c0db8d

Please sign in to comment.