Skip to content

Commit

Permalink
fix: add workaround for adhoc networks (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshultz authored Dec 8, 2023
1 parent 96453b6 commit 7f2c4d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions silverback/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def get_persistent_store(self) -> Optional[BasePersistentStore]:
return persistence_class()

def get_provider_context(self) -> ProviderContextManager:
# NOTE: Bit of a workaround for adhoc connections:
# https://github.com/ApeWorX/ape/issues/1762
if "adhoc" in self.get_network_choice():
return ProviderContextManager(provider=self.provider)
return self.network_manager.parse_network_choice(self.get_network_choice())

def get_signer(self) -> Optional[AccountAPI]:
Expand Down

0 comments on commit 7f2c4d1

Please sign in to comment.