Skip to content

Commit

Permalink
readd coin conversion (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb authored Jan 15, 2020
1 parent f124a17 commit 3e336fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/source/cosmosV0-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ class CosmosV0API extends RESTDataSource {
async getBalancesFromAddress(address, fiatCurrency) {
this.checkAddress(address)
const response = await this.query(`bank/balances/${address}`)
const balances = response || []
let balances = response || []
balances = balances.map(this.reducers.coinReducer)
// We calculate the fiatValue field for networks with multiple tokens
// For now, it is just e-Money
return await this.addFiatValue(balances, fiatCurrency)
Expand Down

0 comments on commit 3e336fc

Please sign in to comment.