Пример #1
0
 def _configure_registry(self, fetch_registry: bool = True):
     RegistryClass = EthereumContractRegistry._get_registry_class(local=self.client.is_local)
     if fetch_registry:
         registry = RegistryClass.from_latest_publication()
     else:
         registry = RegistryClass()
     self.registry = registry
Пример #2
0
 def _configure_registry(self, fetch_registry: bool = True) -> None:
     RegistryClass = EthereumContractRegistry._get_registry_class(
         local=self.client.is_local)
     if fetch_registry:
         registry = RegistryClass.from_latest_publication()
     else:
         registry = RegistryClass()
     self.registry = registry
     self.log.info("Using contract registry {}".format(
         self.registry.filepath))