added storage layout in compilation details

pull/2215/head
aniket-engg 3 years ago committed by yann300
parent c00365b0b0
commit 5d1f587525
  1. 2
      libs/remix-solidity/src/compiler/compiler-input.ts
  2. 2
      libs/remix-solidity/src/compiler/types.ts
  3. 1
      libs/remix-ui/solidity-compiler/src/lib/logic/contract-parser.ts

@ -15,7 +15,7 @@ export default (sources: Source, opts: CompilerInputOptions): string => {
outputSelection: {
'*': {
'': ['ast'],
'*': ['abi', 'metadata', 'devdoc', 'userdoc', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates', 'evm.assembly']
'*': ['abi', 'metadata', 'devdoc', 'userdoc', 'storageLayout', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates', 'evm.assembly']
}
}
}

@ -123,7 +123,7 @@ export interface CompilerInput {
outputSelection?: {
'*': {
'': [ 'ast' ],
'*': [ 'abi', 'metadata', 'devdoc', 'userdoc', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates', 'evm.assembly' ]
'*': [ 'abi', 'metadata', 'devdoc', 'userdoc', 'storageLayout', 'evm.legacyAssembly', 'evm.bytecode', 'evm.deployedBytecode', 'evm.methodIdentifiers', 'evm.gasEstimates', 'evm.assembly' ]
}
}
}

@ -14,6 +14,7 @@ export function parseContracts (contractName, contract, source) {
}
detail.abi = contract.abi
detail.storageLayout = contract.storageLayout
if (contract.evm.bytecode.object) {
detail.bytecode = contract.evm.bytecode

Loading…
Cancel
Save