mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			314 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			314 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| error MyCustomError(uint, bool);
 | |
| contract Test {
 | |
|     function f() public {
 | |
|         abi.decode(MyCustomError, (bool));
 | |
|     }
 | |
| }
 | |
| // ----
 | |
| // TypeError 1956: (94-107): The first argument to "abi.decode" must be implicitly convertible to bytes memory or bytes calldata, but is of type error MyCustomError(uint256,bool).
 |