Skip to content

Commit 92ffb4d

Browse files
leohhhnmoul
andauthored
Apply suggestions from code review
Co-authored-by: Manfred Touron <[email protected]>
1 parent 1688699 commit 92ffb4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/gno.land/r/sys/users/admin.gno

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

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

14-
var callerWhitelist = addrset.Set{}
14+
var controllers = addrset.Set{} // caller whitelist
1515

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

2626
// NewAddWhitelistedAddrExecutor allows GovDAO to add a whitelisted caller
27-
func NewAddWhitelistedAddrExecutor(addr std.Address) dao.Executor {
27+
func ProposeNewController(addr std.Address) dao.Executor {
2828
cb := func() error {
2929
return addToWhitelist(addr)
3030
}

examples/gno.land/r/sys/users/users.gno

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func GetReadOnlyNameStore() *rotree.ReadOnlyTree {
4747
}
4848

4949
func makeUserDataSafe(data interface{}) interface{} {
50-
u := data.(*UserData)
50+
u := *(data.(*UserData))
5151
if u.deleted {
5252
return nil
5353
}

0 commit comments

Comments
 (0)