Skip to content

Commit aa87f6d

Browse files
committed
Starts to rename Ether type to Float as it always should have been.
1 parent 4424db2 commit aa87f6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

balanceChart/get_prefunds.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func getPrefunds(nAddrs int, maxAmt float64) ([]types.Name, error) {
4141
if len(ret) >= nAddrs {
4242
break
4343
}
44-
if base.ToEther(&name.Prefund).Cmp(base.NewEther(maxAmt)) <= 0 {
44+
if base.ToFloat(&name.Prefund).Cmp(base.NewFloat(maxAmt)) <= 0 {
4545
name.Name = name.Address.Hex()
4646
ret = append(ret, name)
4747
}

balanceChart/pkg/charts/bar_chart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func BarChart(names []types.Name, balances []types.State, labels Labels, fileNam
5353
histories := make([]plotter.Values, nAddrs) // a slice of slices of floats
5454
for _, bal := range balances {
5555
idx := idMap[bal.Address] - 1
56-
ff := base.ToEther(&bal.Balance).Float64()
56+
ff := base.ToFloat(&bal.Balance).Float64()
5757
histories[idx] = append(histories[idx], ff)
5858
}
5959

0 commit comments

Comments
 (0)