Merge pull request #793 from dcousens/patch-1

nit: consistent JS syntax for EIP55
This commit is contained in:
cdetrio 2017-12-11 17:25:15 +08:00 committed by GitHub
commit 79dbfc1973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ In javascript:
const createKeccakHash = require('keccak')
function toChecksumAddress (address) {
address = address.toLowerCase().replace('0x','');
address = address.toLowerCase().replace('0x', '')
var hash = createKeccakHash('keccak256').update(address).digest('hex')
var ret = '0x'