okamilab / mythxl

MythXL is open security platform for smart contracts powered by MythX
https://mythxl-ui.azurewebsites.net
MIT License
2 stars 1 forks source link

Failing API submissions #3

Closed muellerberndt closed 5 years ago

muellerberndt commented 5 years ago

Looking at the website it appears that MythXL somehow submits invalid bytecodes as analyses are all failing.

My guess is that MythXL is submitting runtime bytecode in the bytecode field. For the analysis to succeed, MythX requires the creation bytecode, i.e.:

{ contractName: 'SomeName',
  bytecode:
   '[creation-bytecode]',
  sourceMap:
   '[sourceMap',
  deployedBytecode:
   '[runtime-bytecode'],
  deployedSourceMap:
   '[runtime-sourcemap]',
(...)

Please make sure that the submitted format is correct!

aquiladev commented 5 years ago

You are right, I submit code from chain, which does not have creation part

I'll update the logic