Skip to content

Commit

Permalink
Merge branch 'main' into perf/plugin-load
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey authored Nov 8, 2024
2 parents 2900641 + c61d1c5 commit 8389132
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ape_fantom/ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

class FantomConfig(BaseEthereumConfig):
NETWORKS: ClassVar[dict[str, tuple[int, int]]] = NETWORKS
opera: NetworkConfig = create_network_config(block_time=0, required_confirmations=0)
opera: NetworkConfig = create_network_config(
block_time=0, required_confirmations=0, is_mainnet=True
)
testnet: NetworkConfig = create_network_config(block_time=0, required_confirmations=0)


Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ include = '\.pyi?$'
[tool.pytest.ini_options]
addopts = """
-p no:ape_test
-p no:pytest_ethereum
--cov-branch
--cov-report term
--cov-report html
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
url="https://github.com/ApeWorX/ape-fantom",
include_package_data=True,
install_requires=[
"eth-ape>=0.8.1,<0.9",
"eth-ape>=0.8.18,<0.9",
"ethpm-types", # Use same version as eth-ape
],
python_requires=">=3.9,<4",
Expand Down
5 changes: 5 additions & 0 deletions tests/test_ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ def test_encode_transaction(tx_type, fantom, eth_tester_provider):
address = "0x274b028b03A250cA03644E6c578D81f019eE1323"
actual = fantom.encode_transaction(address, abi, sender=address, type=tx_type)
assert actual.gas_limit == eth_tester_provider.max_gas


def test_is_mainnet(fantom):
assert fantom.opera.is_mainnet
assert not fantom.testnet.is_mainnet

0 comments on commit 8389132

Please sign in to comment.