fix: add missing error check in currency service

This commit is contained in:
Dario Gabriel Lipicar 2023-11-09 12:25:29 -03:00 committed by dlipicar
parent 51a1a9940f
commit 337f3aefec

View file

@ -110,6 +110,9 @@ func (s *Service) fetchAllTokenCurrencyFormats() (FormatPerSymbol, error) {
}
tokenFormats, err := s.currency.FetchTokenCurrencyFormats(tokenSymbols)
if err != nil {
return nil, err
}
gweiSymbol := "Gwei"
tokenFormats[gweiSymbol] = Format{
Symbol: gweiSymbol,