Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amm_demo #169

Open
stanieltron opened this issue Aug 4, 2023 · 0 comments
Open

amm_demo #169

stanieltron opened this issue Aug 4, 2023 · 0 comments

Comments

@stanieltron
Copy link

is amm_demo up to date? First I needed to replace stuff like eth.getBalance to eth.get_balance (and others), then I am getting:
Compiling the AMM demo smart contract... Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/stanoo/cairo-lang/src/demo/amm_demo/demo.py", line 241, in <module> main() File "/home/stanoo/cairo-lang/src/demo/amm_demo/demo.py", line 153, in main amm_contract = deploy_contract(prover, w3, operator) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stanoo/cairo-lang/src/demo/amm_demo/demo.py", line 73, in deploy_contract subprocess.check_output(["solc", "--bin", "--abi", CONTRACT_SOURCE_PATH]) File "/usr/lib/python3.11/subprocess.py", line 466, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'solc'

Any idea where might be the problem? went by instructions in https://www.cairo-lang.org/build-a-scalable-cairo-basesd-automated-market-maker/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant