Modifiers.exec()
Executes the formed query and returns an APIList of the Modifier objects.
Last updated
Executes the formed query and returns an APIList of the Modifier objects.
Last updated
exec(
limit_count: int = 0
,
offset_count: int = 0
) →
[
]
It accepts two integer parameters: the first one is limit_count
which limits the count of the returned results, and the second is offset_count
which sets the offset from which the result set must be returned.
In specific, in the Modifiers scenario, it will action a query to search for modifiers.
In solidity, a smart contract can define modifiers which can be called before the code of the function is run.
An example of such a contract would be as below:
An example of a query which adds a filter to select functions which have modifiers with the name "onlyOwner" is: