aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/util_test.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-03 09:42:09 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-03 09:42:09 +0800
commit272bea31b5983a64c26fdc28c827ccd456bc778f (patch)
treefd94bb05e80179a4d085114f71eab23dd02ab15f /test/unit/util_test.js
parentd0f8a14acec274e97d35d9f7a63605581ad21511 (diff)
downloadtangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.tar
tangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.tar.gz
tangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.tar.bz2
tangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.tar.lz
tangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.tar.xz
tangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.tar.zst
tangerine-wallet-browser-272bea31b5983a64c26fdc28c827ccd456bc778f.zip
Fix hashed address validation
Diffstat (limited to 'test/unit/util_test.js')
-rw-r--r--test/unit/util_test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/util_test.js b/test/unit/util_test.js
index 6ad27ed81..12a16999e 100644
--- a/test/unit/util_test.js
+++ b/test/unit/util_test.js
@@ -78,11 +78,11 @@ describe('util', function() {
})
it('should recognize this sample hashed address', function() {
- const address = '0x5Fda30Bb72B8Dfe20e48A00dFc108d0915BE9BbA'
+ const address = '0x5Fda30Bb72B8Dfe20e48A00dFc108d0915BE9Bb0'
const result = util.isValidAddress(address)
- const hashed = ethUtil.toChecksumAddress(address)
+ const hashed = ethUtil.toChecksumAddress(address.toLowerCase())
assert.equal(hashed, address, 'example is hashed correctly')
- assert.ok(result)
+ assert.ok(result, 'is valid by our check')
})
})