Update floCrypto.js
This commit is contained in:
parent
16906d7acc
commit
dd93f05a5b
@ -431,9 +431,13 @@
|
|||||||
} else
|
} else
|
||||||
return null;
|
return null;
|
||||||
} else if ((address.length == 42 && address.startsWith("0x")) || (address.length == 40 && !address.startsWith("0x"))) { //Ethereum Address
|
} 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 {
|
return {
|
||||||
|
version: 1,
|
||||||
hex: address,
|
hex: address,
|
||||||
type: 'ethereum'
|
type: 'ethereum',
|
||||||
|
bytes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user