CallNode.is_function

Returns whether the node represents a function.

property is_function : bool

Query Example

from glider import *

def query():
    contracts = Contracts().exec(1,3)
    contract = contracts[0]

    call_nodes = contract.call_graph().all_nodes()
    call_node = call_nodes[13]
    
    print(f"Is call node {call_node.callable_name()} a function: {call_node.is_function}")
 
    return []

Example Output

[
  {
    "print_output": [
      "Is call node transferAndCall a function: True"
    ]
  }
]

Last updated