Skip to content

Commit

Permalink
fix: lowercase eth addresses
Browse files Browse the repository at this point in the history
Ethereum addresses should be all lowercase.  Uppercase chars in ethereum addresses are a sort of optional checksum.  If a program is validating ethereum addresses, random capital letters in the hex string will cause the checksum to fail.
  • Loading branch information
aj-may committed Apr 3, 2019
1 parent 157c0c0 commit 86d0a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/finance.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ var Finance = function (faker) {
* @method faker.finance.ethereumAddress
*/
self.ethereumAddress = function () {
var address = faker.random.hexaDecimal(40);
var address = faker.random.hexaDecimal(40).toLowerCase();

return address;
};
Expand Down

0 comments on commit 86d0a27

Please sign in to comment.