Skip to content

Commit

Permalink
fix: In ListUsersByPrefix, need to pass the address of the tree to Li…
Browse files Browse the repository at this point in the history
…stByteStringKeysByPrefix. See the PR (#147)

Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 authored Dec 20, 2024
1 parent 92655fc commit df05e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realm/public.gno
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func GetJsonFollowing(address std.Address, startIndex int, endIndex int) string
// Get a list of user names starting from the given prefix. Limit the
// number of results to maxResults.
func ListUsersByPrefix(prefix string, maxResults int) []string {
return avlhelpers.ListByteStringKeysByPrefix(gUserAddressByName, prefix, maxResults)
return avlhelpers.ListByteStringKeysByPrefix(&gUserAddressByName, prefix, maxResults)
}

// Get a list of user names starting from the given prefix. Limit the
Expand Down

0 comments on commit df05e67

Please sign in to comment.