Contracts.with_compiler_range()
Adds a filter to get contracts whose compilation version is in the given range.
with_compiler_range(lower_bound: str, upper_bound: str) ->
Contracts
Query Example
from glider import *
def query():
contracts = Contracts().with_compiler_range("0.4.20", "0.4.24").exec(3)
for contract in contracts:
print(contract.pragmas())
return contracts
Output Example

Last updated