execTransactionFromModule
Execute operation
(0: Call, 1: DelegateCall) to to
with value
(native token).
Function is virtual to allow overriding for L2 singleton to emit an event for indexing.
Usage
_19interface ISafe {_19 function execTransactionFromModule(_19 address to,_19 uint256 value,_19 bytes data,_19 enum Enum.Operation operation_19 ) external returns (bool success);_19}_19_19contract Example {_19 function example() … {_19 (ISafe safe).execTransactionFromModule(_19 0x...,_19 0,_19 "0x...",_19 Enum.Operation.Call_19 );_19 }_19}
Returns
success
- Type:
bool
Boolean flag indicating if the call succeeded.
Parameters
to
- Type:
address
Destination address of module transaction.
_10(ISafe safe).execTransactionFromModule(_10 0x...,_10 0,_10 "0x...",_10 Enum.Operation.Call_10);
value
- Type:
uint256
The native token value transferred in the Safe Module transaction.
_10(ISafe safe).execTransactionFromModule(_10 0x...,_10 0,_10 "0x...",_10 Enum.Operation.Call_10);
data
- Type:
bytes
Data payload of the module transaction.
_10(ISafe safe).execTransactionFromModule(_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).execTransactionFromModule(_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.