CallNode.callable()

Returns corresponding callable.

callable() → Callable

Query Example

from glider import *


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

    call_nodes = contract.call_graph().all_nodes()
    for call_node in call_nodes:
        callable = call_node.callable()
        print(callable.signature())

    return contracts

Example Output

Output below represents printed output from the caller's source code:

[
  {
    "print_output": [
      "_msgSender()",
      "_msgData()"
    ]
  }
]

Last updated