mirror of
https://github.com/status-im/EIPs.git
synced 2025-01-14 00:45:05 +00:00
Merge pull request #793 from dcousens/patch-1
nit: consistent JS syntax for EIP55
This commit is contained in:
commit
79dbfc1973
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user