Created
November 29, 2019 18:29
-
-
Save vasa-develop/271b1e1708800c801c6063b84891597b to your computer and use it in GitHub Desktop.
This file contains hidden or 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.5.11; | |
| import "./Greeter.sol"; | |
| contract Wallet { | |
| Greeter internal greeter; | |
| constructor() public { | |
| greeter = new Greeter(); | |
| } | |
| function() external payable { | |
| bool status; | |
| bytes memory res; | |
| (status, res) = address(greeter).delegatecall(abi.encodeWithSelector(bytes4(keccak256("thanks()")))); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment