Skip to content

Commit

Permalink
chore: lints
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 25, 2024
1 parent 86f08ab commit d79e2e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ape_hardhat/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class PackageJson(BaseModel):
version: Optional[str] = None
description: Optional[str] = None
dependencies: Optional[dict[str, str]] = None
dev_dependencies: Optional[dict[str, str]] = Field(None, alias="devDependencies")
dev_dependencies: Optional[dict[str, str]] = Field(default=None, alias="devDependencies")


class HardhatForkConfig(PluginConfig):
Expand Down Expand Up @@ -289,7 +289,7 @@ class NetworkMetadata(BaseModel):
instanceId of an existing Hardhat Network.
"""

forked_network: Optional[ForkedNetworkMetadata] = Field(None, alias="forkedNetwork")
forked_network: Optional[ForkedNetworkMetadata] = Field(default=None, alias="forkedNetwork")
"""
An object with information about the forked network. This field is
only present when Hardhat Network is forking another chain.
Expand Down
5 changes: 1 addition & 4 deletions tests/test_fork_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,7 @@ def test_hardhat_command(
package_json = {
"name": "contracts",
"version": "0.1.0",
"dependencies": {
"hardhat": "^2.13.1",
"@nomicfoundation/hardhat-ethers": "^3.0.8"
},
"dependencies": {"hardhat": "^2.13.1", "@nomicfoundation/hardhat-ethers": "^3.0.8"},
}

if has_hardhat_deploy:
Expand Down

0 comments on commit d79e2e0

Please sign in to comment.