Skip to content

Commit

Permalink
chore: add todo
Browse files Browse the repository at this point in the history
Signed-off-by: Norman <[email protected]>
  • Loading branch information
n0izn0iz committed Dec 29, 2024
1 parent 06441eb commit e247761
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gno/p/dao_voting_roles/voting_roles.gno
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,17 @@ func (v *VotingRoles) NewRole(roleName string, resources []ResourceVPower) {

func (v *VotingRoles) DeleteRole(roleName string) {
v.rm.DeleteRole(roleName)
// FIXME: update total power for this role's resources
}

func (v *VotingRoles) GrantRole(address std.Address, role string) {
v.rm.AddRoleToUser(address, role)
// FIXME: update total power for this role's resources
}

func (v *VotingRoles) RevokeRole(address std.Address, role string) {
v.rm.RemoveRoleFromUser(address, role)
// FIXME: update total power for this role's resources
}

func (v *VotingRoles) GetMemberRoles(address std.Address) []string {
Expand Down

0 comments on commit e247761

Please sign in to comment.