Skip to content

Commit 4985478

Browse files
update the search accounts weights
1 parent c6d643f commit 4985478

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/addressbook/addressbook_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func TestGenerateNameVariants(t *testing.T) {
201201

202202
for _, tt := range tests {
203203
t.Run(tt.name, func(t *testing.T) {
204-
result := GenerateNameVariants(tt.input)
204+
result := GenerateSlugVariants(tt.input)
205205
if !reflect.DeepEqual(result, tt.expected) {
206206
t.Errorf("Expected %v, but got %v", tt.expected, result)
207207
}

pkg/addressbook/attached_accounts.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ import (
1313

1414
// AttachedAccountType represents the type of the attached account
1515
const (
16-
KnownAccountWeight = 1000
16+
KnownAccountWeight = 5000
1717
BoostForFullMatch = 100
18-
BoostForVerified = 10
18+
BoostForVerified = 50
1919
)
2020

2121
// AttachedAccount represents domains, nft collections for quick search by name are presented

0 commit comments

Comments
 (0)