mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			626 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			626 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    function f() public {
 | 
						|
        payable(this).transfer(1);
 | 
						|
        require(payable(this).send(2));
 | 
						|
        selfdestruct(payable(this));
 | 
						|
        (bool success,) = address(this).delegatecall("");
 | 
						|
        require(success);
 | 
						|
		(success,) = address(this).call("");
 | 
						|
        require(success);
 | 
						|
    }
 | 
						|
    function g() pure public {
 | 
						|
        bytes32 x = keccak256("abc");
 | 
						|
        bytes32 y = sha256("abc");
 | 
						|
        address z = ecrecover(bytes32(uint256(1)), uint8(2), bytes32(uint256(3)), bytes32(uint256(4)));
 | 
						|
        require(true);
 | 
						|
        assert(true);
 | 
						|
        x; y; z;
 | 
						|
    }
 | 
						|
    receive() payable external {}
 | 
						|
}
 | 
						|
// ----
 |