Update floCloudAPI.js

This commit is contained in:
tripathyr 2023-10-15 13:11:39 +05:30 committed by GitHub
parent 35128829d2
commit 69b73acdf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,7 +420,7 @@
}));
} 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)