Contracts.with_function_name()

Adds a filter to get contracts that have a function with the given name.

with_function_name(name: str, sensitivity: bool = True) -> Contracts

Query Example

from glider import *

def query():
  contracts = Contracts().with_function_name('receive').exec(1)

  functions = contracts.functions().exec()
  for function in functions:
    print(function.name)

  return contracts

Output Example

Last updated