MethodProp.HAS_ERRORS
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract Example {
error myCustomError(uint256 requestedAmount,address caller);
function collectAllowance(address caller,uint256 requestedAmount) public returns (bool success){
//just revert to show how errors work
revert myCustomError(requestedAmount,caller);
}
}from glider import *
def query():
props_included = [MethodProp.HAS_ERRORS]
functions = Functions()\
.with_all_properties(props_included)\
.exec(5)
return functionsOutput

Last updated