mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			214 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			214 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| pragma abicoder v2;
 | |
| contract C {
 | |
|     struct S { uint a; }
 | |
|     event E(S);
 | |
|     function createEvent(uint x) public {
 | |
|         emit E(S(x));
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // createEvent(uint256): 42 ->
 | |
| // ~ emit E((uint256)): 0x2a
 |