Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from unparalleled-js/chore/jules/bump-cairo
Browse files Browse the repository at this point in the history
fix: support `starknet.py upgrade`
  • Loading branch information
antazoey authored Oct 4, 2022
2 parents 56eb33d + 3f2ccc1 commit 40413f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ape_cairo/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ape.utils import get_relative_path
from ethpm_types import ContractType, PackageManifest
from pkg_resources import get_distribution # type: ignore
from starknet_py.compile.compiler import StarknetCompilationSource, starknet_compile # type: ignore
from starknet_py.compile.compiler import CairoFilename, starknet_compile # type: ignore
from starkware.starknet.services.api.contract_class import ContractClass # type: ignore


Expand Down Expand Up @@ -116,7 +116,7 @@ def compile(
search_paths = [base_path, *cached_paths_to_add]
for contract_path in contract_filepaths:
try:
source = StarknetCompilationSource(str(contract_path))
source = CairoFilename(str(contract_path))
is_account = _has_account_methods(contract_path)
result_str = starknet_compile(
[source], search_paths=search_paths, is_account_contract=is_account
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
include_package_data=True,
install_requires=[
"cairo-lang>=0.10.0,<0.11",
"starknet.py>=0.6.0a0,<0.7",
"starknet.py>=0.6.2a0,<0.7",
"eth-ape>=0.5.1,<0.6",
"ethpm-types",
],
Expand Down

0 comments on commit 40413f7

Please sign in to comment.