Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

RuntimeError preventing use of etheno with --ganache #101

@jackson-clerkenwell-labs

Description

I am trying to run Etheno with ganache to capture transactions for an echidna test. I am starting Etheno with the following command:

etheno --ganache --ganache-args "--gasLimit 10000000" -x init.json

After running, the ganache output provides the following output, then throws a runtime error:

INFO     [05-30|10:08:26][Ganache@8546] ganache v7.0.3 (@ganache/cli: 0.1.4, @ganache/core: 0.1.4)
INFO     [05-30|10:08:26][Ganache@8546] cannot convert string value "1098918061707753166174719436420667867553160713642701484075379
Traceback (most recent call last):
  File "/Users/jacksonernst/mambaforge/bin/etheno", line 8, in <module>
    sys.exit(main())
  File "/Users/jacksonernst/mambaforge/lib/python3.8/site-packages/etheno/__main__.py", line 246, in main
    ETHENO.master_client = ganache.GanacheClient(ganache_instance)
  File "/Users/jacksonernst/mambaforge/lib/python3.8/site-packages/etheno/etheno.py", line 159, in master_client
    self.accounts: list[int] = list(map(lambda a: int(a, 16), client.post({
  File "/Users/jacksonernst/mambaforge/lib/python3.8/site-packages/etheno/client.py", line 184, in post
    ret = self.client.post(data)
  File "/Users/jacksonernst/mambaforge/lib/python3.8/site-packages/etheno/ganache.py", line 63, in post
    self.start()
  File "/Users/jacksonernst/mambaforge/lib/python3.8/site-packages/etheno/ganache.py", line 59, in start
    raise RuntimeError(f"{' '.join(self.args)} exited with non-zero status {retcode}")
RuntimeError: /usr/bin/env ganache-cli -d -p 8546 --account=109891806170775316617471943642066786755316071364270148407537998213554720155005,0x56bc75e2d63100000 --account=42302103610597028425285740569650371168511679135457624922469531760977464749938,0x56bc75e2d63100000 --account=100870083039498194968905591548145282128725665563480050404127864771982117015473,0x56bc75e2d63100000 --account=115373150260844996401793173181603946311413146491015576768058777734917710127568,0x56bc75e2d63100000 --account=53001614672554792902779076596216615296764409633909208276641440248418084348489,0x56bc75e2d63100000 --account=108423602806403586082964421630950060010932211521460727391252402121327615073485,0x56bc75e2d63100000 --account=59604273759680909804650830416294379401009216907174373741665691593639472345743,0x56bc75e2d63100000 --account=84662448971784691084114880351835696387596565905580124357617650010663179228850,0x56bc75e2d63100000 --account=80959231915385603714551776387480621855748162939160947305508002130176050382175,0x56bc75e2d63100000 --account=16190400443940898392371145865360649145951099448761774038403681914007303146633,0x56bc75e2d63100000 -g 20000000000 -i 111550642089583 --deterministic --gasLimit 10000000 exited with non-zero status 1

It seems Etheno is starting ganache with the following arguments, and ganache is having an issue with the --account arguments:

['--account=109891806170775316617471943642066786755316071364270148407537998213554720155005,0x56bc75e2d63100000', '--account=42302103610597028425285740569650371168511679135457624922469531760977464749938,0x56bc75e2d63100000', '--account=100870083039498194968905591548145282128725665563480050404127864771982117015473,0x56bc75e2d63100000', '--account=115373150260844996401793173181603946311413146491015576768058777734917710127568,0x56bc75e2d63100000', '--account=53001614672554792902779076596216615296764409633909208276641440248418084348489,0x56bc75e2d63100000', '--account=108423602806403586082964421630950060010932211521460727391252402121327615073485,0x56bc75e2d63100000', '--account=59604273759680909804650830416294379401009216907174373741665691593639472345743,0x56bc75e2d63100000', '--account=84662448971784691084114880351835696387596565905580124357617650010663179228850,0x56bc75e2d63100000', '--account=80959231915385603714551776387480621855748162939160947305508002130176050382175,0x56bc75e2d63100000', '--account=16190400443940898392371145865360649145951099448761774038403681914007303146633,0x56bc75e2d63100000', '-g', '20000000000', '-i', '111550642089583', '--gasLimit', '10000000']

I have Etheno installed in a conda osx-arm64 enviroment with python 3.8.13. I have also tried running the command with python 3.10.1, and I still got the same error.

Any help would be much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions