Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Manfred Touron <[email protected]>
  • Loading branch information
leohhhn and moul authored Feb 12, 2025
1 parent 1688699 commit 92ffb4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/gno.land/r/sys/users/admin.gno
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

const gusersv1 = "gno.land/r/gnoland/users/v1" // preregistered with store write perms

var callerWhitelist = addrset.Set{}
var controllers = addrset.Set{} // caller whitelist

func init() {
callerWhitelist.Add(std.DerivePkgAddr(gusersv1)) // initially whitelisted
Expand All @@ -24,7 +24,7 @@ func IsOnWhitelist(addr std.Address) bool {
}

// NewAddWhitelistedAddrExecutor allows GovDAO to add a whitelisted caller
func NewAddWhitelistedAddrExecutor(addr std.Address) dao.Executor {
func ProposeNewController(addr std.Address) dao.Executor {
cb := func() error {
return addToWhitelist(addr)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/gno.land/r/sys/users/users.gno
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func GetReadOnlyNameStore() *rotree.ReadOnlyTree {
}

func makeUserDataSafe(data interface{}) interface{} {
u := data.(*UserData)
u := *(data.(*UserData))
if u.deleted {
return nil
}
Expand Down

0 comments on commit 92ffb4d

Please sign in to comment.