Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed May 7, 2024
1 parent 2679109 commit a21be3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions l1-contracts/src.ts/diamondCut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export async function getFacetCutsForUpgrade(
namesOfFacetsToBeRemoved?: string[]
) {
const newFacetCuts = await getCurrentFacetCutsForAdd(adminAddress, gettersAddress, mailboxAddress, executorAddress);
namesOfFacetsToBeRemoved = namesOfFacetsToBeRemoved || [
...Object.keys(newFacetCuts),
];
namesOfFacetsToBeRemoved = namesOfFacetsToBeRemoved || [...Object.keys(newFacetCuts)];
const oldFacetCuts = await getDeployedFacetCutsForRemove(wallet, zkSyncAddress, namesOfFacetsToBeRemoved);
return [...oldFacetCuts, ...Object.values(newFacetCuts)];
}

0 comments on commit a21be3b

Please sign in to comment.