Skip to content

Instantly share code, notes, and snippets.

@vasa-develop
Created November 29, 2019 18:29
Show Gist options
  • Select an option

  • Save vasa-develop/271b1e1708800c801c6063b84891597b to your computer and use it in GitHub Desktop.

Select an option

Save vasa-develop/271b1e1708800c801c6063b84891597b to your computer and use it in GitHub Desktop.
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