What are some ways to convert from bytes8 hexadecimal to uint64 binary?


You can just cast it:

function test(bytes8 b) public pure returns (uint64) {
    return uint64(b);

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.