Switch btcctl to use btcutil.Amount.

This commit is contained in:
David Hill 2014-07-09 16:28:45 -04:00
parent e68d46f556
commit f7ce37f8c1

View file

@ -129,7 +129,11 @@ func toSatoshi(val string) (interface{}, error) {
if err != nil {
return nil, err
}
return int64(btcutil.SatoshiPerBitcoin * idx), nil
amt, err := btcutil.NewAmount(idx)
if err != nil {
return nil, err
}
return int64(amt), nil
}
// toInt attempts to convert the passed string to an integer. It returns the