Merge pull request #1018 from ethereum/bug_fix/1012_interfaces_error

add devdoc and userdoc to compiler input and contract details #1012
pull/1/head
yann300 7 years ago committed by GitHub
commit 13f28080ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/compiler/compiler-input.js
  2. 3
      src/app/contract/contractParser.js

@ -13,7 +13,7 @@ module.exports = (sources, opts) => {
outputSelection: { outputSelection: {
'*': { '*': {
'': [ 'legacyAST' ], '': [ 'legacyAST' ],
'*': [ 'abi', 'metadata', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates' ] '*': [ 'abi', 'metadata', 'devdoc', 'userdoc', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates' ]
} }
} }
} }

@ -34,6 +34,9 @@ var getDetails = function (contractName, contract, source) {
detail.gasEstimates = formatGasEstimates(contract.evm.gasEstimates) detail.gasEstimates = formatGasEstimates(contract.evm.gasEstimates)
detail.devdoc = contract.devdoc
detail.userdoc = contract.userdoc
if (contract.evm.deployedBytecode && contract.evm.deployedBytecode.object.length > 0) { if (contract.evm.deployedBytecode && contract.evm.deployedBytecode.object.length > 0) {
detail['Runtime Bytecode'] = contract.evm.deployedBytecode detail['Runtime Bytecode'] = contract.evm.deployedBytecode
} }

Loading…
Cancel
Save