Skip to content

Commit

Permalink
fix: minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Dec 12, 2024
1 parent 8a0cf81 commit f630b05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin/src/features/Compilation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const CompilationCard: React.FC<{

const isCompiling = useAtomValue(isCompilingAtom);

const status = useAtomValue(statusAtom);

const isCurrentFileName = currentFilename === "" || currentFilename === null || currentFilename === undefined;

return (
Expand Down Expand Up @@ -356,8 +358,6 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {

const resultJson = JSON.parse(result) as CompilationResult;

console.log(resultJson);

if (resultJson.status !== "Success") {
await remixClient.call(
"notification" as any,
Expand All @@ -383,6 +383,8 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
await writeResultsToArtifacts(resultJson);
} catch (e) {
console.log("error writing to artifacts: ", e);

throw new Error("Failed to write artifacts");
}

setIsCompiling(false);
Expand Down Expand Up @@ -449,8 +451,6 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
updatedContracts.push(newContract);
}

console.log(updatedContracts);

// Update contracts state with filtered + new contracts
setContracts([...updatedContracts, ...contracts.filter((c: Contract) => !updatedContracts.some((uc: Contract) => uc.name === c.name && uc.classHash === c.classHash))]);

Expand Down

0 comments on commit f630b05

Please sign in to comment.