Skip to content

Instantly share code, notes, and snippets.

@izqui

izqui/error.sol Secret

Created August 29, 2018 10:07
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 izqui/2ffece981bfa1fec74e07164a81e21b2 to your computer and use it in GitHub Desktop.
Save izqui/2ffece981bfa1fec74e07164a81e21b2 to your computer and use it in GitHub Desktop.
contract Error {
function x() {
revert(error(1, 1, 2567));
}
function error(uint8 x, uint8 y, uint16 z) internal view returns (string) {
return string(abi.encodePacked(x, y, z, address(this)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment