Skip to content

Commit

Permalink
refactor: utilize super config, code sharing (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored May 10, 2024
1 parent e5fbdaf commit c7c352a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ape_ethereum/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@

class NetworkConfig(PluginConfig):
required_confirmations: int = 0
"""
The amount of blocks to wait before
considering a transaction 'confirmed'.
"""

default_provider: Optional[str] = "geth"
"""
Expand Down Expand Up @@ -353,7 +357,7 @@ class Ethereum(EcosystemAPI):

@property
def config(self) -> EthereumConfig:
return cast(EthereumConfig, self.config_manager.get_config(self.name))
return cast(EthereumConfig, super().config)

@property
def default_transaction_type(self) -> TransactionType:
Expand Down

0 comments on commit c7c352a

Please sign in to comment.