Last active
August 28, 2023 04:52
-
-
Save yongkangc/943a45dff669ca682f1a9ad1a6d822be to your computer and use it in GitHub Desktop.
Sample Opcode contract
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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