コード例 #1
0
ファイル: interfaces.py プロジェクト: pranav-singhal/nucypher
 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))