From 88a027c5d0705260d69b7602d20dbc061aff2d40 Mon Sep 17 00:00:00 2001 From: wangjingcun Date: Fri, 25 Oct 2024 16:56:05 +0800 Subject: [PATCH] fix: fix slice init length --- client/core/tokens_file_loader_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/core/tokens_file_loader_test.go b/client/core/tokens_file_loader_test.go index 8fbc27cd..6c799994 100644 --- a/client/core/tokens_file_loader_test.go +++ b/client/core/tokens_file_loader_test.go @@ -11,7 +11,7 @@ import ( ) func TestLoadTokensFromUrl(t *testing.T) { - tokensMetadata := make([]TokenMetadata, 2) + tokensMetadata := make([]TokenMetadata, 0, 2) tokensMetadata = append(tokensMetadata, TokenMetadata{ Address: "", IsNative: true,