Merge pull request #361 from aeternity/clarify_protected_calls

Clarify documentation on protected calls
This commit is contained in:
Hans Svensson
2021-12-10 14:52:11 +01:00
committed by GitHub
+3
View File
@@ -99,6 +99,9 @@ running out of gas it is necessary to set a gas limit using the `gas` argument.
However, note that errors that would normally consume all the gas in the
transaction still only uses up the gas spent running the contract.
Any side effects (state change, token transfers, etc.) made by a failing
protected call is rolled back, just like they would be in the unprotected case.
### Contract factories and child contracts