Skip to content

Commit

Permalink
fix errs
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Feb 12, 2025
1 parent 45da2de commit 793755c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/gno.land/r/gnoland/users/v1/admin.gno
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func ProposeNewName(addr std.Address, newName string) dao.Executor {

userData := susers.ResolveAddress(addr)
if userData == nil {
panic(ErrInvalidUsername)
panic(susers.ErrUserNotExistOrDeleted)
}

cb := func() error {
Expand All @@ -50,7 +50,7 @@ func ProposeNewName(addr std.Address, newName string) dao.Executor {
func ProposeDeleteUser(addr std.Address) dao.Executor {
userData := susers.ResolveAddress(addr)
if userData == nil {
panic(ErrInvalidUsername)
panic(susers.ErrUserNotExistOrDeleted)
}

cb := func() error {
Expand Down

0 comments on commit 793755c

Please sign in to comment.