Skip to content

Commit

Permalink
users renderlink
Browse files Browse the repository at this point in the history
  • Loading branch information
leohhhn committed Feb 12, 2025
1 parent 2a692e5 commit 25af5b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/gno.land/r/sys/users/store.gno
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func (u UserData) IsDeleted() bool {
return u.deleted
}

func (u UserData) RenderLink() string {
return "/u/" + u.username
}

// RegisterUser adds a new user to the system.
func RegisterUser(name string, address std.Address) error {
// Validate caller
Expand Down

0 comments on commit 25af5b4

Please sign in to comment.