def _generate_selectors_with_abis_from_contract(self, contract: Contract) -> Dict[bytes, ContractFunction]: """ :param contract: Web3 Contract :return: Dictionary with function selector as bytes and the ContractFunction """ return {function_abi_to_4byte_selector(contract_fn.abi): contract_fn for contract_fn in contract.all_functions()}
def _generate_selectors_with_abis_from_contract(self, contract: Contract) -> Dict[bytes, ContractFunction]: return {function_abi_to_4byte_selector(contract_fn.abi): contract_fn for contract_fn in contract.all_functions()}
def _function_check(contract: Contract, function_name: str) -> bool: return function_name in list( map(lambda x: x.fn_name, contract.all_functions()))