btc: remove unneeded radix parameter for parseFloat()
This commit is contained in:
parent
3e06a244dd
commit
7379482c32
@ -488,7 +488,7 @@ Amount.parse = function parse(value, exp, num) {
|
|||||||
Amount.parseUnsafe = function parseUnsafe(value, exp, num) {
|
Amount.parseUnsafe = function parseUnsafe(value, exp, num) {
|
||||||
if (typeof value === 'string') {
|
if (typeof value === 'string') {
|
||||||
assert(util.isFloat(value), 'Non-BTC value for conversion.');
|
assert(util.isFloat(value), 'Non-BTC value for conversion.');
|
||||||
value = parseFloat(value, 10);
|
value = parseFloat(value);
|
||||||
} else {
|
} else {
|
||||||
assert(util.isNumber(value), 'Non-BTC value for conversion.');
|
assert(util.isNumber(value), 'Non-BTC value for conversion.');
|
||||||
assert(num, 'Cannot parse number.');
|
assert(num, 'Cannot parse number.');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user