Skip to content

Instantly share code, notes, and snippets.

@anisoptera
Created October 22, 2020 22:07
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 anisoptera/f603abdb6302e93b322c517812b32621 to your computer and use it in GitHub Desktop.
Save anisoptera/f603abdb6302e93b322c517812b32621 to your computer and use it in GitHub Desktop.
contract SimpleWallet is Owned {
function transfer(IERC20 token, address payable to, uint256 amount) public isOwner {
token.transfer(to, amount);
}
function transferEth(address payable to, uint256 amount) public isOwner {
to.transfer(amount);
}
function deposit() payable external {
}
receive() payable external {
}
fallback() payable external {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment