Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #180 from ConsenSys/add-mainSource
Browse files Browse the repository at this point in the history
Add mainSource field
  • Loading branch information
nbanmp committed Apr 16, 2019
2 parents c3294a8 + 5898390 commit 9dea948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/mythx.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const truffle2MythXJSON = function(truffleJSON, toolId = 'truffle-security') {
deployedBytecode,
sourceMap,
deployedSourceMap,
mainSource: sourcePath,
sourceList: [ sourcePath ],
sources: {
[sourcesKey]: {
Expand Down
1 change: 1 addition & 0 deletions test/test_mythx.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('mythx.js', () => {
deployedBytecode: truffleJSON.deployedBytecode,
sourceMap: srcmap.zeroedSourceMap(truffleJSON.sourceMap),
deployedSourceMap: srcmap.zeroedSourceMap(truffleJSON.deployedSourceMap),
mainSource: truffleJSON.sourcePath,
sourceList: [ truffleJSON.sourcePath ],
sources: {
'simple_dao.sol': {
Expand Down

0 comments on commit 9dea948

Please sign in to comment.