Smart Account Reference
Modules
execTransactionFromModuleReturnData

execTransactionFromModuleReturnData

Executes a transaction from an enabled Safe Module and returns the result data.

Usage


_19
interface 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
_19
contract 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


_10
event ExecutionFromModuleSuccess(address to, uint256 value, bytes data);

Emitted when a transaction executed by a module succeeds.

ExecutionFromModuleFailure


_10
event ExecutionFromModuleFailure(address module);

Emitted when a transaction executed by a module fails.

Was this page helpful?