Clarify documentation on protected calls

This commit is contained in:
Hans Svensson 2021-12-10 11:29:04 +01:00
parent a04dd6c86d
commit cf08aeee04

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 However, note that errors that would normally consume all the gas in the
transaction still only uses up the gas spent running the contract. 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 ### Contract factories and child contracts