muellerberndt / solfuzz

Check for assertion violations on Solidity smart contracts using grey-box fuzzing and symbolic analysis.
MIT License
29 stars 1 forks source link

Submission fails due to 'noCacheLookup' option #1

Closed ezulkosk closed 4 years ago

ezulkosk commented 4 years ago

Whenever I attempt to submit a contract for analysis, I receive the following error:

✔ Loaded solc v0.5.16 from local cache
✔ Compiled with solc v0.5.16 successfully
✖ Submitting data for analysis
Error: 403 You have no permission to use `noCacheLookup` option

The docs here: https://api.mythx.io/v1/openapi#operation/submitAnalysis, state

[noCacheLookup] Optional. When true API won't look into the cache of past analyses, and always will run a new analysis for this request. The using of cache has no other side effects beside saving the runtime, thus this option is intended only for benchmarking, API health control, and debuging purposes. Itrequries NO_CACHE_LOOKUP permission to use, which is granted only to MythX team members.

I was able to circumvent the issue by deleting this line: https://github.com/b-mueller/solfuzz/blob/a62efa1b993d226463b17e6b6da2abf420d11d51/lib/client.js#L15 but not sure if a more "robust" fix is needed.

muellerberndt commented 4 years ago

Hey @ezulkosk, that fix is perfectly fine actually. I'll merge this into the next release!

muellerberndt commented 4 years ago

.. done 🙂