MethodProp.HAS_MODIFIERS
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract Example {
modifier onlyOwner {
require(msg.sender == owner);
_;
}
//This function has the onlyOwner modifier
function setNewOwner(address newOwner) public onlyOwner {
owner = newOwner;
}
}from glider import *
def query():
props_included = [MethodProp.HAS_MODIFIERS]
functions = Functions()\
.with_all_properties(props_included)\
.exec(5)
return functionsOutput

Last updated