1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Ensure conversion util does not return insignificant trailing zeroes.

This commit is contained in:
Dan 2017-09-18 22:05:52 -02:30 committed by Chi Kei Chan
parent a67d3ecd46
commit 566ffee8cd

View File

@ -51,7 +51,7 @@ const toSpecifiedDenomination = {
}
const baseChange = {
hex: n => n.toString(16),
dec: n => n.toString(10),
dec: n => Number(n).toString(10),
BN: n => new BN(n.toString(16)),
}