Use bytes1 and avoid using the obsolete byte type (#2438)

This commit is contained in:
Alex Beregszaszi
2020-12-14 19:42:01 +00:00
committed by GitHub
parent 0a4233f0f6
commit 051d340171

View File

@ -26,7 +26,7 @@ library Strings {
uint256 index = digits - 1;
temp = value;
while (temp != 0) {
buffer[index--] = byte(uint8(48 + temp % 10));
buffer[index--] = bytes1(uint8(48 + temp % 10));
temp /= 10;
}
return string(buffer);