fix: pass context in FindOrCreateTokenByAddress

This commit is contained in:
Dario Gabriel Lipicar 2023-11-17 14:30:06 -03:00 committed by dlipicar
parent 5933376eda
commit c88ab45d76
1 changed files with 2 additions and 2 deletions

View File

@ -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
}