From df05e6748ed31c5a2d5550814752b6c2c689247a Mon Sep 17 00:00:00 2001 From: Jeff Thompson Date: Fri, 20 Dec 2024 11:32:05 +0100 Subject: [PATCH] fix: In ListUsersByPrefix, need to pass the address of the tree to ListByteStringKeysByPrefix. See the PR (#147) Signed-off-by: Jeff Thompson --- realm/public.gno | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/realm/public.gno b/realm/public.gno index 868d7b0..f6097bb 100644 --- a/realm/public.gno +++ b/realm/public.gno @@ -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