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
1 changed files with 3 additions and 0 deletions

View File

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