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.
最新评论