executeFromExecutor returns a bytes[] that contains the return data of the calls being executed.
When the mode is such that execType == EXECTYPE_TRY, the execution is haneled by the variants of _tryExecute
|
function _tryExecute(Execution[] calldata executions) |
|
internal |
|
returns (bytes[] memory result) |
|
{ |
|
uint256 length = executions.length; |
|
result = new bytes[](length); |
|
|
|
for (uint256 i; i < length; i++) { |
|
Execution calldata _exec = executions[i]; |
|
bool success; |
|
(success, result[i]) = _tryExecute(_exec.target, _exec.value, _exec.callData); |
|
if (!success) emit TryExecuteUnsuccessful(i, result[i]); |
|
} |
|
} |
If the call is fails, the returndata is the revert reason (or custom error) that is returned by the contract. This is returned to the caller just like if the call had not failed. An event is emitted for external observers to see, but the calling contract has no way to see that, and doesn't know weither the call(s) failled of not.
executeFromExecutorreturns abytes[]that contains the return data of the calls being executed.When the mode is such that execType == EXECTYPE_TRY, the execution is haneled by the variants of
_tryExecuteerc7579-implementation/src/core/ExecutionHelper.sol
Lines 28 to 41 in 99cbd34
If the call is fails, the returndata is the revert reason (or custom error) that is returned by the contract. This is returned to the caller just like if the call had not failed. An event is emitted for external observers to see, but the calling contract has no way to see that, and doesn't know weither the call(s) failled of not.