mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			382 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			382 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| 
 | |
| contract c {
 | |
|     function set() public returns (bool) { data1 = msg.data; return true; }
 | |
|     function reset() public returns (bool) { data1 = data2; return true; }
 | |
|     bytes data1;
 | |
|     bytes data2;
 | |
| }
 | |
| // ----
 | |
| // set(): 1, 2, 3, 4, 5 -> true
 | |
| // gas irOptimized: 177386
 | |
| // gas legacy: 177970
 | |
| // gas legacyOptimized: 177559
 | |
| // storageEmpty -> 0
 | |
| // reset() -> true
 | |
| // storageEmpty -> 1
 |