Merge pull request #623 from ethereum/refactorOutputSelection
Refactor compilerInput && Update change on legacy featurespull/7/head
commit
810b28f096
@ -0,0 +1,26 @@ |
||||
module.exports = { |
||||
compilerInput: compilerInput |
||||
} |
||||
|
||||
function compilerInput (contracts) { |
||||
return JSON.stringify({ |
||||
language: 'Solidity', |
||||
sources: { |
||||
'test.sol': { |
||||
content: contracts |
||||
} |
||||
}, |
||||
settings: { |
||||
optimizer: { |
||||
enabled: false, |
||||
runs: 500 |
||||
} |
||||
}, |
||||
outputSelection: { |
||||
'*': { |
||||
'': [ 'legacyAST' ], |
||||
'*': [ 'abi', 'metadata', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates' ] |
||||
} |
||||
} |
||||
}) |
||||
} |
Loading…
Reference in new issue