mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			295 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			295 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    bytes32 constant a = keccak256(abi.encode(1, 2));
 | 
						|
    bytes32 constant b = keccak256(abi.encodePacked(uint(1), a));
 | 
						|
    bytes32 constant c = keccak256(abi.encodeWithSelector(0x12345678, b, 2));
 | 
						|
    bytes32 constant d = keccak256(abi.encodeWithSignature("f()", 1, 2));
 | 
						|
}
 | 
						|
// ----
 |