diff --git a/ape_alchemy/config.py b/ape_alchemy/config.py index e8a17d7..325253b 100644 --- a/ape_alchemy/config.py +++ b/ape_alchemy/config.py @@ -2,7 +2,8 @@ class AlchemyConfig(PluginConfig): - """Configuration for Alchemy. + """ + Configuration for Alchemy. Args: min_retry_delay (int): The amount of milliseconds to wait before @@ -24,4 +25,4 @@ class AlchemyConfig(PluginConfig): max_retry_delay: int = 30_000 max_retries: int = 3 retry_jitter: int = 250 - trace_timeout: int = 10_000 + trace_timeout: str = "10s" diff --git a/ape_alchemy/provider.py b/ape_alchemy/provider.py index ce3b755..71b7349 100644 --- a/ape_alchemy/provider.py +++ b/ape_alchemy/provider.py @@ -216,7 +216,10 @@ def _get_prestate_trace(self, transaction_hash: str) -> dict: "debug_traceTransaction", [ transaction_hash, - {"tracer": "prestateTracer", "timeout": self.config.trace_timeout}, + { + "tracer": "prestateTracer", + "timeout": self.config.trace_timeout, + }, ], )