In 0.7.6 I want to check if a bytes array is equal to "" or not, but the compiler doesn't like

bytes fingerprint = "";

// do something 

How do I check for this?

1 Answer 1


bytes is a dynamic array of byte, maybe you wanted to uses bytes32 instead ?

What is the difference between bytes and bytes32?

or just check the array length of that array.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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