Skip to content

Commit

Permalink
feat: set DANK_MIDS_GANACHE_FORK env to disable state override
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Jan 24, 2023
1 parent 251b508 commit fa13729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dank_mids/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, controller: "DankMiddlewareController") -> None:
self.multicall_uid: UIDGenerator = UIDGenerator()
self.request_uid: UIDGenerator = UIDGenerator()
self.jsonrpc_batch_uid: UIDGenerator = UIDGenerator()
self.state_override_not_supported: bool = self.controller.chain_id == 100 # Gnosis Chain does not support state override.
self.state_override_not_supported: bool = os.environ.get("DANK_MIDS_GANACHE_FORK") or self.controller.chain_id == 100 # Gnosis Chain does not support state override.
self.event_loop = asyncio.new_event_loop()
self.worker_thread = threading.Thread(target=self.start)
self.worker_thread.start()
Expand Down

0 comments on commit fa13729

Please sign in to comment.