Skip to content

Commit

Permalink
Merge pull request #267 from NethermindEth/ux-isses/compiled-contracts
Browse files Browse the repository at this point in the history
UX Issues - Avoid clustered compiled contracts by only keeping track of their latest versions
  • Loading branch information
varex83 authored Sep 5, 2024
2 parents bd31de6 + d0e148d commit 14d5528
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/src/features/Compilation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,9 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {

if (contract != null) {
setSelectedContract(contract)
const contractName = contract.name
const contractPath = contract.path
contracts.filter((contract) => contract.name !== contractName && contract.path !== contractPath)
setContracts([contract, ...contracts])
} else {
if (selectedContract == null) setSelectedContract(contracts[0])
Expand Down

0 comments on commit 14d5528

Please sign in to comment.