cleanunicorn / mythos

CLI client for the MythX API
https://mythx.io/
20 stars 6 forks source link

MetaCoin.sol fails to analyze - Source list index 1 out of range #31

Closed nbanmp closed 5 years ago

nbanmp commented 5 years ago

Analysis fails for MetaCoin.sol from truffle https://truffleframework.com/docs/truffle/getting-started/creating-a-project

> mythos analyze contracts/MetaCoin.sol MetaCoin 
Reading contract contracts/MetaCoin.sol... done
Downloading Solidity version v0.5.6+commit.b259423e
Compiling contract contracts/MetaCoin.sol... done
Analyzing contract MetaCoin... !
 ›   Error: Analysis failed: source list index 1 out of range for issue tasks.Issue{SWCID:"SWC-111", SWCTitle:"Use of Deprecated Solidity Functions", 
 ›   Description:tasks.IssueDescription{Head:"Use of tx.origin is deprecated.", Tail:"The smart contract retrieves the transaction origin (tx.origin) using msg.origin. Use of msg.origin 
 ›   is deprecated and the instruction may be removed in the  future. Use msg.sender instead.\nSee also: 
 ›   https://solidity.readthedocs.io/en/develop/security-considerations.html#tx-origin"}, Severity:"Medium", Locations:[]tasks.IssueLocation{tasks.IssueLocation{SourceMap:"495:9:1"}}, 
 ›   Extra:tasks.ExtraInfo{TestCase:tasks.TestCaseInfo{InitialState:tasks.StateInfo{Accounts:map[string]tasks.AccountInfo(nil)}, Steps:[]tasks.TransactionInfo(nil)}, Hidden:false}}