Closed shashank-srikant closed 6 years ago
Hi @shashank-srikant ,Thanks for the report. Currently we are using solc for getting the bytecode and I don't see any code for MintableTokenImpl when i execute
solc -o outputDirectory --bin --bin-runtime --asm --opcodes sourceFile.sol
And it's code seems to be in the ZenomeToken file, looks like solc is considering it as an interface
It seems MintableTokenImpl
is an abstract contract in which case solc doesn't compile it so we won't receive the code from solidity.
Description
Had raised a bug earlier regarding Mythril not processing Interfaces. Issue referenced in #337 It was fixed in #347 However, the fix seems to be incorrect, since now, it is unable to process contracts with valid methods.
How to Reproduce
Solidity script: https://etherscan.io/address/0x6342eabec28aec4902432d852dcd08d4f6df96ab#code Both commands -
myth -xo json file_name:MintableToken
andmyth -xo json file_name:MintableTokenImpl
provide the following outputThe source codes of the two contracts are -
and,
Clearly,
MintableTokenImpl
is not an interface.Environment