0

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 = "";

if(fingerprint!=""){ // do something }

How do I check for this?

antioi
  • 61
  • 3

1 Answers1

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.