cafe-utility 27.4.0 → 27.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +0 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2559,7 +2559,6 @@ function publicKeyToAddress(n) {
|
|
|
2559
2559
|
function checksumEncode(n) {
|
|
2560
2560
|
const e = exports.Binary.uint8ArrayToHex(n),
|
|
2561
2561
|
t = exports.Binary.uint8ArrayToHex(exports.Binary.keccak256(new Uint8Array([...e].map(o => o.charCodeAt(0)))))
|
|
2562
|
-
console.log({ address: e, hash: t })
|
|
2563
2562
|
let r = '0x'
|
|
2564
2563
|
for (let o = 0; o < e.length; o++) parseInt(t[o], 16) > 7 ? (r += e[o].toUpperCase()) : (r += e[o])
|
|
2565
2564
|
return r
|