Skip to content

Instantly share code, notes, and snippets.

@yongkangc
Last active August 28, 2023 04:52
Show Gist options
  • Save yongkangc/943a45dff669ca682f1a9ad1a6d822be to your computer and use it in GitHub Desktop.
Save yongkangc/943a45dff669ca682f1a9ad1a6d822be to your computer and use it in GitHub Desktop.
Sample Opcode contract
pragma solidity 0.8.7;
contract AddOne {
uint16 private a = 3;
function aPlusOne() external view returns(uint 256) {
unchecked {
return a + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment