3

I have the value: 200000000000000000000000000000 which is represented as: 0x00000040952fe4da5c1f3c8602000000 that i'm trying to convert in eosjs.

signedBinaryToDecimal(hexToUint8Array("0x00000040952fe4da5c1f3c8602000000"), 0)) seems to fail with "Error: Expected hex string"

Has anyone managed to do this?

3

0x is a flag for compilers to know that it's a hex value. This isn't required for hexToUint8Array();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.