getModulesPaginated
Returns an array of modules. If all entries fit into a single page, the next pointer will be 0x1
. If another page is present, next will be the last element of the returned array.
Usage
_12interface ISafe {_12 function getModulesPaginated(_12 address start,_12 uint256 pageSize_12 ) external view returns (address[] array, address next);_12}_12_12contract Example {_12 function example() … {_12 (ISafe safe).getModulesPaginated(0x..., 1);_12 }_12}
Returns
array
- Type:
address[]
Array of modules.
next
- Type:
address
Start of the next page.
Parameters
start
- Type:
address
Start of the page. Has to be a module or start pointer (0x1
address).
_10(ISafe safe).getModulesPaginated(_10 0x...,_10 1_10);
pageSize
- Type:
uint256
Maximum number of modules that should be returned. Has to be greater than zero.
_10(ISafe safe).getModulesPaginated(_10 0x...,_10 1_10);