uint256 i = 10;
byte(uint8(i));
context
uint256 can’t convert to byte directly, but can convert to uint8 then convert to byte.
uint256 i = 10;
byte(uint8(i));
uint256 can’t convert to byte directly, but can convert to uint8 then convert to byte.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.