mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Enable struct abi example with experimental pragma
This commit is contained in:
		
							parent
							
								
									4cad0b224b
								
							
						
					
					
						commit
						134cc73e8e
					
				| @ -377,10 +377,14 @@ As an example, the code | ||||
| 
 | ||||
| :: | ||||
| 
 | ||||
|     pragma solidity ^0.4.19; | ||||
|     pragma experimental ABIEncoderV2; | ||||
| 
 | ||||
|     contract Test { | ||||
|       struct S { uint a; uint[] b; T[] c; } | ||||
|       struct T { uint x; uint y; } | ||||
|       function f(S s, T t, uint a) { } | ||||
|       function g() returns (S s, T t, uint a) {} | ||||
|     } | ||||
| 
 | ||||
| would result in the JSON: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user