Skip to content
Discussion options

You must be logged in to vote

Hi! From what I can tell, yarn v1 (the version you're using) does not support inserting commands in arbitrary positions. Yarn v2 might have added support, judging by the discussion on this link.

https://stackoverflow.com/questions/50835221/pass-command-line-argument-to-child-script-in-yarn

As you can see, the command generated for your example turned out to be invalid (note the stray "TestSwapFactory" in the end, and the literal $1)

$ echidna . --contract $1 --test-mode assertion --config echidna_config.yaml TestSwapFactory

Consider using this alternative:

"check-assertion": "echidna . --test-mode assertion --config echidna_config.yaml --contract" // the argument with the name will be us…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gustavo-grieco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1140 on November 30, 2023 21:52.