fix: pass context in FindOrCreateTokenByAddress
This commit is contained in:
parent
5933376eda
commit
c88ab45d76
|
@ -257,7 +257,7 @@ func (tm *Manager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint6
|
||||||
|
|
||||||
for _, token := range customTokens {
|
for _, token := range customTokens {
|
||||||
if token.Address == address {
|
if token.Address == address {
|
||||||
tm.discoverTokenCommunityID(context.Background(), token, address)
|
tm.discoverTokenCommunityID(ctx, token, address)
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -272,7 +272,7 @@ func (tm *Manager) FindOrCreateTokenByAddress(ctx context.Context, chainID uint6
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
tm.discoverTokenCommunityID(context.Background(), token, address)
|
tm.discoverTokenCommunityID(ctx, token, address)
|
||||||
return token
|
return token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue