Skip to content

Instantly share code, notes, and snippets.

@Enigmatic331
Created December 30, 2019 04:03
Show Gist options
  • Save Enigmatic331/c9d1602cb0fd70e90fedc4f6630210f8 to your computer and use it in GitHub Desktop.
Save Enigmatic331/c9d1602cb0fd70e90fedc4f6630210f8 to your computer and use it in GitHub Desktop.
pragma solidity ^0.6.0;
contract shortContract2 {
int256 constant public INT256_MIN = int256(uint256(1) << 255);
int256 constant public INT256_MAX = int256(~(uint256(1) << 255));
uint256 constant public UINT256_MIN = 0;
uint256 constant public UINT256_MAX = ~uint256(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment