I am trying to put 0x11 into bytes, but I keep getting an error.
As I know, the bytes type supports the flexible size up to 32 bytes. However, I do not know what I can't even set 1 byte there.
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
contract practice {
bytes1 public a = 0x11;
bytes public c = 0x11; // an error occured, why is it??
bytes public b = '0x11'; // It is not even 0x11, why do I have to put string value into bytes...?
}
Please let me know this