Returns true if the Contract is main, false otherwise.
Last updated 7 days ago
is_main() β bool
The engine marks the contract as main, if it is the one being executed on the deployed address
from glider import * def query(): mains = Contracts().exec(30).filter(lambda x: x.is_main()) return mains