Created
October 5, 2021 13:21
-
-
Save ylv-io/762d6e043489b727ab8002bbeaf887c0 to your computer and use it in GitHub Desktop.
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
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.3/contracts/access/Ownable.sol"; | |
pragma solidity 0.8.0; | |
contract StorageBug is Ownable { | |
function write() onlyOwner external { | |
uint256[] storage arr; | |
arr.push(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment