mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Include the pragma explicitly, rename the file to have a _v1 suffix, and also add V2 counterparts where missing.
		
			
				
	
	
		
			13 lines
		
	
	
		
			330 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			330 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma abicoder v1;
 | 
						|
// Tests that this will not end up using a "bytes0" type
 | 
						|
// (which would assert)
 | 
						|
contract C {
 | 
						|
    function f() public pure returns (bytes memory, bytes memory) {
 | 
						|
        return (abi.encode(""), abi.encodePacked(""));
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// ABIEncoderV1Only: true
 | 
						|
// ----
 | 
						|
// f() -> 0x40, 0xa0, 0x40, 0x20, 0x0, 0x0
 |