Skip to content

Commit

Permalink
fix: config value
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day committed Jan 3, 2025
1 parent dd7d703 commit 5292a46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ape_alchemy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
5 changes: 4 additions & 1 deletion ape_alchemy/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
],
)

Expand Down

0 comments on commit 5292a46

Please sign in to comment.