aboutsummaryrefslogtreecommitdiff
path: root/tests.js
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2017-02-15 19:45:03 +1100
committerIan Coleman <coleman.ian@gmail.com>2017-02-15 19:45:03 +1100
commit49b21f122a232330f7efc499095d8d80f7895a20 (patch)
tree113cf9781c910a4f015c4b5f488ffeb8d9d4aeb8 /tests.js
parent8b095871e8ab14ec236ddb181ffdfe36e6636058 (diff)
downloadBIP39-49b21f122a232330f7efc499095d8d80f7895a20.tar.gz
BIP39-49b21f122a232330f7efc499095d8d80f7895a20.tar.zst
BIP39-49b21f122a232330f7efc499095d8d80f7895a20.zip
Ethereum addresses include checksum
Diffstat (limited to 'tests.js')
-rw-r--r--tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests.js b/tests.js
index 677f3e2..89f4ce3 100644
--- a/tests.js
+++ b/tests.js
@@ -624,12 +624,12 @@ page.open(url, function(status) {
624 // check the address is generated correctly 624 // check the address is generated correctly
625 // this value comes from 625 // this value comes from
626 // https://www.myetherwallet.com/#view-wallet-info 626 // https://www.myetherwallet.com/#view-wallet-info
627 // I do not understand the capitalization scheme for this hex encoding 627 // Unusual capitalization is due to checksum
628 var expected = "0xe5815d5902Ad612d49283DEdEc02100Bd44C2772"; 628 var expected = "0xe5815d5902Ad612d49283DEdEc02100Bd44C2772";
629 var actual = page.evaluate(function() { 629 var actual = page.evaluate(function() {
630 return $(".address:first").text(); 630 return $(".address:first").text();
631 }); 631 });
632 if (actual != expected.toLowerCase()) { 632 if (actual != expected) {
633 console.log("Ethereum address is incorrect"); 633 console.log("Ethereum address is incorrect");
634 console.log("Expected: " + expected); 634 console.log("Expected: " + expected);
635 console.log("Actual: " + actual); 635 console.log("Actual: " + actual);