Adds a filter to get only the constructors.
from glider import *
def query():
# Fetch a list of constructors
functions = Functions().constructors().exec(2)
return functions
The function also accounts for the old constructor syntax, which in the older Solidity versions was named the same as the contract.
from glider import *
def query():
funcs = Functions().constructors().without_name('constructor').exec(2)
return funcs