Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended permissions for module accounts #4679

Merged
merged 16 commits into from
Jul 6, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
fedekunze committed Jul 6, 2019
commit e22f70c958b15377f976c93c4366b74d65d71dde
2 changes: 1 addition & 1 deletion x/auth/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (ma moduleAccount) GetName() string {
return ma.name
}

// GetPermissions returns permissions granted to the module account (holder/minter/burner)
// GetPermissions returns permissions granted to the module account
func (ma moduleAccount) GetPermissions() []string {
return ma.permissions
}
Expand Down
4 changes: 2 additions & 2 deletions x/mint/internal/keeper/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func newTestInput(t *testing.T) testInput {
maccPerms := map[string][]string{
auth.FeeCollectorName: []string{supply.Basic},
types.ModuleName: []string{supply.Minter},
staking.NotBondedPoolName: []string{supply.Burner},
staking.BondedPoolName: []string{supply.Burner},
staking.NotBondedPoolName: []string{supply.Burner, supply.Staking},
staking.BondedPoolName: []string{supply.Burner, supply.Staking},
}
supplyKeeper := supply.NewKeeper(types.ModuleCdc, keySupply, accountKeeper, bankKeeper, supply.DefaultCodespace, maccPerms)
supplyKeeper.SetSupply(ctx, supply.NewSupply(sdk.Coins{}))
Expand Down