mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
fix type error
This commit is contained in:
parent
33c5031a2e
commit
c54fcb6148
1 changed files with 3 additions and 0 deletions
|
|
@ -2266,8 +2266,11 @@ var isAddress = function (address) {
|
|||
* @return {Boolean}
|
||||
*/
|
||||
var isChecksumAddress = function (address) {
|
||||
if (typeof address === 'undefined') return false;
|
||||
|
||||
// Check each case
|
||||
address = address.replace('0x','');
|
||||
if (address.length !== 40) return false;
|
||||
var addressHash = sha3(address.toLowerCase());
|
||||
|
||||
for (var i = 0; i < 40; i++ ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue