Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created June 17, 2019 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/59a34504383dfe3fe40fe7705dcac993 to your computer and use it in GitHub Desktop.
Save miguelmota/59a34504383dfe3fe40fe7705dcac993 to your computer and use it in GitHub Desktop.
Solidity uint256 to byte (bytes1)
uint256 i = 10;
byte(uint8(i));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment