Update cloud.js

This commit is contained in:
tripathyr 2023-10-15 13:10:01 +05:30 committed by GitHub
parent c5f4e61678
commit eba2d7b37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ function proxyID(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);}
bytes = Crypto.util.hexToBytes(address), { asBytes: true };
bytes = Crypto.util.hexToBytes(address);
}
if (!bytes)