Fix CMC Coin ID (#282)

* Fix #297 CMC Coin ID
* Remove unused check

Co-authored-by: Simon Roberts <lyricnz@users.noreply.github.com>
pull/284/head^2
Vuong 2 years ago committed by GitHub
parent 9bffc26035
commit 24a4bdedab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -77,8 +77,7 @@ func (s *Service) getPaginatedCoinData(convert string, offset int) ([]apitypes.C
}
ret = append(ret, apitypes.Coin{
// TODO: Fix ID
ID: util.FormatID(v.Name),
ID: util.FormatID(fmt.Sprint(v.ID)),
Name: util.FormatName(v.Name),
Symbol: util.FormatSymbol(v.Symbol),
Rank: util.FormatRank(v.CMCRank),

Loading…
Cancel
Save