diff options
| author | A.J. May <[email protected]> | 2019-04-02 15:23:39 -0400 |
|---|---|---|
| committer | A.J. May <[email protected]> | 2019-04-03 10:36:50 -0400 |
| commit | 86d0a279144eeed6793a37b1523ee887a60cd77d (patch) | |
| tree | 30c649cf3d958ea160ead2d19a3e3843129e22e2 /lib | |
| parent | 157c0c052ca86eea110e74aa6c4a85f7bdfa9a6b (diff) | |
| download | faker-86d0a279144eeed6793a37b1523ee887a60cd77d.tar.xz faker-86d0a279144eeed6793a37b1523ee887a60cd77d.zip | |
fix: lowercase eth addresses
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/finance.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/finance.js b/lib/finance.js index e3506265..c16b9e49 100644 --- a/lib/finance.js +++ b/lib/finance.js @@ -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; }; |
