fix compilation details

pull/3334/head
Aniket-Engg 2 years ago committed by Aniket
parent 1ae436ed59
commit aa76e1e196
  1. 6
      libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx

@ -158,10 +158,10 @@ export const ContractSelection = (props: ContractSelectionProps) => {
swarmLocation: 'Swarm url where all metadata information can be found (contract needs to be published first)',
web3Deploy: 'Copy/paste this code to any JavaScript/Web3 console to deploy this contract'
}
let contractProperties = contractsDetails[selectedContract] || {}
contractProperties.compilerInput = compilerInput
let contractProperties:any = {}
// Make 'compilerInput' first field to display it as first item in 'Compilation Details' modal
contractProperties = JSON.parse(JSON.stringify(contractProperties, ["compilerInput", ...Object.keys(contractProperties)], 4))
if (compilerInput) contractProperties.compilerInput = compilerInput
contractProperties = Object.assign(contractProperties, contractsDetails[selectedContract])
const log = <div className="remixui_detailsJSON">
<TreeView>
{

Loading…
Cancel
Save