Returns Contracts object for the contracts from which the contract was inherited directly.
parent_contracts() β Contracts
parent_contracts() β
Contracts
from glider import * def query(): contracts = Contracts().exec(1, 1) names = [] for contract in contracts: print(contract.name) parent_contracts = contract.parent_contracts().exec() for contract in parent_contracts: names.append(contract.name) return [{"names": names}]
{ "names": [ "Context" ] } { "print_output": [ "Ownable" ] }
Last updated 7 months ago