Closed kelonye closed 4 years ago
I think i found the issue https://github.com/dmuhs/mythx-cli/blob/master/mythx_cli/analyze/util.py#L211 ... submitting a PR
Thanks for fixing the issue right away! :fire:
Some small notes on the command: You can omit the --api-key
parameter if the MYTHX_API_KEY
environment variable is defined. The CLI picks up on it automatically. Also, you can simplify the contracts/*
target to just contracts/
. In any case, when given a directory that is not a Truffle project, the CLI will recursively walk the directory, enumerate all Solidity files in it, and submit them to MythX for analysis.
These payloads can get fairly large and include util contracts - which you might not want because they can clutter your analysis results. Do fix that, you might want to explicitly define the contracts you want to analyze by pointing the CLI directly to the Solidity file and contract name target. A small example would be:
mythx analyze contracts/token.sol:MyToken
This will also prevent recursive walks through large directory structures and results in a slightly faster submission :slightly_smiling_face:
Awesome! Thanks for merging, and updated at https://github.com/vbstreetz/pooltogether-contracts/commit/464f691d09244461b3451b0dbf77316138898ea7 ..
Description
analyze --remap-import
ignores imports if one of them contains "migration". Please see these images:What I Did
Works:
Fails: