Update floCrypto.js
This commit is contained in:
parent
16906d7acc
commit
dd93f05a5b
@ -431,9 +431,13 @@
|
||||
} else
|
||||
return null;
|
||||
} else if ((address.length == 42 && address.startsWith("0x")) || (address.length == 40 && !address.startsWith("0x"))) { //Ethereum Address
|
||||
if (address.startsWith("0x")) { address = address.substring(2); }
|
||||
let bytes = Crypto.util.hexToBytes(address);
|
||||
return {
|
||||
version: 1,
|
||||
hex: address,
|
||||
type: 'ethereum'
|
||||
type: 'ethereum',
|
||||
bytes
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -534,4 +538,4 @@
|
||||
m => String.fromCharCode(parseInt(m.replace(/\\u/g, ''), 16)));
|
||||
}
|
||||
|
||||
})('object' === typeof module ? module.exports : window.floCrypto = {});
|
||||
})('object' === typeof module ? module.exports : window.floCrypto = {});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user