Kevin Serrano
adf4b89804
Add additional test to ui utils to account for exact wei values.
7 years ago
Kevin Serrano
3d627e869b
Add test for edge case.
7 years ago
Thomas Huang
0b13429daf
Lint tests
8 years ago
Frankie
d4c0a4949b
Clean up tests
8 years ago
Frankie
aa4746f4c7
Add test and ability for isHex to handle hex strings with hex-prefix
8 years ago
Frankie
4366f72fe1
Add unit test for isHex and add to CHANGELOG.md
8 years ago
Frankie
7e3b0aca62
Add test
8 years ago
Kevin Serrano
37f21cf18f
Remove unused functions. Readd if necessary.
8 years ago
Kevin Serrano
31d0d1ec08
Refactor util tests.
8 years ago
Frankie
2cc44df584
Revert back to original formatBalance
8 years ago
Dan Finlay
7058dc4ee3
Began reworking tx conf view
8 years ago
Frankie
9d577ea023
Add decimal hendeling to ETH balance
8 years ago
Dan Finlay
2c89cd722e
Simplify empty account balance rendering
8 years ago
Zac Mitton
9132f08507
added a failing case and fixed it by refactoring everything to strings
8 years ago
Dan Finlay
272bea31b5
Fix hashed address validation
9 years ago
Dan Finlay
d0f8a14ace
Add test case for sample hashed address
9 years ago
Zac Mitton
2ce9f1a776
correctly displaying small balances with tests
9 years ago
Dan Finlay
60270de53d
Add full precision to send tx value field.
9 years ago
Dan Finlay
22a77b8041
Increase send value precision
9 years ago
Dan Finlay
c8deb355f7
Add address capitalization checksumming
9 years ago
Dan Finlay
d6ab6bb4fa
Fix floating point input bug
...
When sending a transaction, we were converting to BN before handling decimals, which meant we were losing any precision past a decimal point, since BN does not handle decimals!
Put this numeric normalization into a utility function with a test around it and got it working.
9 years ago
Dan Finlay
65d73d7bb4
Unify test suites
9 years ago
Dan Finlay
33dc68535d
Add leading zero to account balances
9 years ago
Dan Finlay
8527d051b0
Fix eth resolution
...
utils.formatBalance was returning rounded ether, was not useful for displaying account balances.
Now returns four decimal points, and is easily configurable for more, with passing tests.
Spoiler alert: Don't you dare divide bignumber wei. Bignumber does not have decimals. Keep it as wei, format it as ether.
9 years ago
Dan Finlay
d814a45dff
Moved UI into repo with its own dependency stack
9 years ago