From c88ab45d769d790fc24ff45518e4a818f90bcbb0 Mon Sep 17 00:00:00 2001 From: Dario Gabriel Lipicar Date: Fri, 17 Nov 2023 14:30:06 -0300 Subject: [PATCH] fix: pass context in FindOrCreateTokenByAddress --- services/wallet/token/token.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/wallet/token/token.go b/services/wallet/token/token.go index 9e4c9bd20..7d4c4524e 100644 --- a/services/wallet/token/token.go +++ b/services/wallet/token/token.go @@ -257,7 +257,7 @@ func (tm *Manager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint6 for _, token := range customTokens { if token.Address == address { - tm.discoverTokenCommunityID(context.Background(), token, address) + tm.discoverTokenCommunityID(ctx, token, address) return token } } @@ -272,7 +272,7 @@ func (tm *Manager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint6 return nil } - tm.discoverTokenCommunityID(context.Background(), token, address) + tm.discoverTokenCommunityID(ctx, token, address) return token }