execTransactionFromModuleReturnData
Executes a transaction from an enabled Safe Module and returns the result data.
Usage
_19interface ISafe {_19 function execTransactionFromModuleReturnData(_19 address to,_19 uint256 value,_19 bytes data,_19 enum Enum.Operation operation_19 ) external returns (bool success, bytes returnData);_19}_19_19contract Example {_19 function example() … {_19 (ISafe safe).execTransactionFromModuleReturnData(_19 0x...,_19 0,_19 "0x...",_19 Enum.Operation.Call_19 );_19 }_19}
Returns
success
- Type:
bool
Boolean flag indicating if the call succeeded.
returnData
- Type:
bytes
Data returned by the call.
Parameters
to
- Type:
address
Destination address of the Safe Module transaction.
_10(ISafe safe).execTransactionFromModuleReturnData(_10 0x...,_10 0,_10 "0x...",_10 Enum.Operation.Call_10);
value
- Type:
uint256
Value of the native token transferred in the module transaction.
_10(ISafe safe).execTransactionFromModuleReturnData(_10 0x...,_10 0,_10 "0x...",_10 Enum.Operation.Call_10);
data
- Type:
bytes
Data payload of the module transaction.
_10(ISafe safe).execTransactionFromModuleReturnData(_10 0x...,_10 0,_10 "0x...",_10 Enum.Operation.Call_10);
operation
- Type:
enum Enum.Operation
Operation type of the module transaction.
_10(ISafe safe).execTransactionFromModuleReturnData(_10 0x...,_10 0,_10 "0x...",_10 Enum.Operation.Call_10);
Events
ExecutionFromModuleSuccess
_10event ExecutionFromModuleSuccess(address to, uint256 value, bytes data);
Emitted when a transaction executed by a module succeeds.
ExecutionFromModuleFailure
_10event ExecutionFromModuleFailure(address module);
Emitted when a transaction executed by a module fails.