Adds a filter to get contracts that have a struct with the given fields count.
with_struct_fields_count(number: int) β Contracts
with_struct_fields_count(number: int) β
Contracts
from glider import * def query(): contracts = ( Contracts(). with_name("DepositSecurityModule"). with_struct_fields_count(2). exec(1) ) return contracts
{ { "contract": "0xdb149235b6f40dc08810aa69869783be101790e7" "contract_name": "DepositSecurityModule" } }
Last updated 4 months ago