evm 1.1.1

Ethereum Virtual Machine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract SimpleContract {
    address public owner;

    // Constructor sets the owner of the contract
    constructor() {
        owner = msg.sender;
    }

    // Function to destroy the contract and send the remaining funds to the target address
    function destroy(address target) public {
         selfdestruct(payable(target));
    }
}