mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	change assert and require docs
This commit is contained in:
		
							parent
							
								
									d0bd549d85
								
							
						
					
					
						commit
						2f44aa4072
					
				| @ -120,11 +120,11 @@ Error Handling | ||||
| -------------- | ||||
| 
 | ||||
| ``assert(bool condition)``: | ||||
|     throws if the condition is not met - to be used for internal errors. | ||||
|     invalidates the transaction if the condition is not met - to be used for internal errors. | ||||
| ``require(bool condition)``: | ||||
|     throws if the condition is not met - to be used for errors in inputs or external components. | ||||
|     reverts if the condition is not met - to be used for errors in inputs or external components. | ||||
| ``require(bool condition, string message)``: | ||||
|     throws if the condition is not met - to be used for errors in inputs or external components. Also provides an error message. | ||||
|     reverts if the condition is not met - to be used for errors in inputs or external components. Also provides an error message. | ||||
| ``revert()``: | ||||
|     abort execution and revert state changes | ||||
| ``revert(string reason)``: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user