Skip to content

Instantly share code, notes, and snippets.

@qianbin
Created August 5, 2019 15:30
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 qianbin/0fd5f468c4ff41d120dbe4d47eae9228 to your computer and use it in GitHub Desktop.
Save qianbin/0fd5f468c4ff41d120dbe4d47eae9228 to your computer and use it in GitHub Desktop.
contract lost
pragma solidity ^0.4.23;
contract Surprise {
address public owner;
function whatWillHappen() public {
// defaults to 'storage' type, and points to `owner`.
uint8[20] x;
// will mamuplate value of `owner`
x[0]++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment