mirror of
https://github.com/status-im/EIPs.git
synced 2025-02-10 13:56:27 +00:00
eip55: consistent JS syntax
This commit is contained in:
parent
389b0f5651
commit
93ddda2dd6
@ -52,7 +52,7 @@ In javascript:
|
|||||||
const createKeccakHash = require('keccak')
|
const createKeccakHash = require('keccak')
|
||||||
|
|
||||||
function toChecksumAddress (address) {
|
function toChecksumAddress (address) {
|
||||||
address = address.toLowerCase().replace('0x','');
|
address = address.toLowerCase().replace('0x', '')
|
||||||
var hash = createKeccakHash('keccak256').update(address).digest('hex')
|
var hash = createKeccakHash('keccak256').update(address).digest('hex')
|
||||||
var ret = '0x'
|
var ret = '0x'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user