Skip to content

Commit

Permalink
fixed some embarrassing mistakes! (btc addresses and balances)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacwhyte committed Sep 18, 2018
1 parent 3143950 commit 56fdf23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phrase.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ func (p Phrase) getBitcoinAddresses(chainNo uint32, childNo uint32, count int, t
return nil, err
}
addresses = append(addresses, Address{Address: pkh.EncodeAddress()})

childNo++
}

return
Expand Down Expand Up @@ -193,7 +195,7 @@ func (p Phrase) LookupBTC(chain uint32, child uint32, count int, isTestnet bool)

for i, v := range addresses {
addresses[i].TxCount = BCi[v.Address].TxCount
addresses[i].Balance = float64(BCi[v.Address].Balance / 100000000)
addresses[i].Balance = float64(float64(BCi[v.Address].Balance) / 100000000)
}
return

Expand Down

0 comments on commit 56fdf23

Please sign in to comment.