mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| pragma experimental ABIEncoderV2;
 | |
| struct S { uint a; }
 | |
| contract C {
 | |
|     function f(S calldata s) external view {}
 | |
|     function g(S memory s) public view {}
 | |
| }
 | |
| // ----
 | |
| //     :C
 | |
| // [
 | |
| //   {
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "components":
 | |
| //         [
 | |
| //           {
 | |
| //             "internalType": "uint256",
 | |
| //             "name": "a",
 | |
| //             "type": "uint256"
 | |
| //           }
 | |
| //         ],
 | |
| //         "internalType": "struct S",
 | |
| //         "name": "s",
 | |
| //         "type": "tuple"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "f",
 | |
| //     "outputs": [],
 | |
| //     "stateMutability": "view",
 | |
| //     "type": "function"
 | |
| //   },
 | |
| //   {
 | |
| //     "inputs":
 | |
| //     [
 | |
| //       {
 | |
| //         "components":
 | |
| //         [
 | |
| //           {
 | |
| //             "internalType": "uint256",
 | |
| //             "name": "a",
 | |
| //             "type": "uint256"
 | |
| //           }
 | |
| //         ],
 | |
| //         "internalType": "struct S",
 | |
| //         "name": "s",
 | |
| //         "type": "tuple"
 | |
| //       }
 | |
| //     ],
 | |
| //     "name": "g",
 | |
| //     "outputs": [],
 | |
| //     "stateMutability": "view",
 | |
| //     "type": "function"
 | |
| //   }
 | |
| // ]
 |