diff --git a/src/app/(main)/editor/page.tsx b/src/app/(main)/editor/page.tsx index 4402cc3..d9d4751 100644 --- a/src/app/(main)/editor/page.tsx +++ b/src/app/(main)/editor/page.tsx @@ -54,6 +54,7 @@ export default function EditorPage() { if (!cairo_program) { return; } + console.log(checkIsContract(cairo_program)) if (checkIsContract(cairo_program)) { const res = await compileContract({starknetContract: cairo_program, replaceIds: isReplaceIds, allowWarnings: true}); console.log(res, 'res'); @@ -303,7 +304,7 @@ export default function EditorPage() { return (
[{displayTimeByTimeStamp(log.timestamp)}]
-
{log.message}
+
) }) diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index f79f879..f9eaff3 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -1,7 +1,6 @@ 'use client'; import {ReactNode} from "react"; -import {Header} from "@/components/Header"; import {SideBar} from "@/components/SideBar"; import {StarknetProvider} from "@/components/StarkProvider"; import {QueryClient, QueryClientProvider} from "@tanstack/react-query"; diff --git a/src/utils/common.ts b/src/utils/common.ts index 04dd889..cdb77e0 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -13,7 +13,7 @@ export const checkIsContract = (codeString: string) => { const noCommentsCodeStr = noCommentsCode.join(''); // Check if #[contract] is in the code part - return noCommentsCodeStr.includes('#[contract]'); + return noCommentsCodeStr.includes('#[starknet::contract]'); } export const shortenAddress = (address?:string) =>{