From 7773a829e798db5995cbed93e3631be61b13006c Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Mon, 28 Aug 2023 12:16:39 +0100 Subject: [PATCH] Compile circom code with play button --- libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx index a5055f794b..6ea63767d3 100644 --- a/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx +++ b/libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx @@ -179,6 +179,9 @@ export const TabsUI = (props: TabsUIProps) => { } else if (tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul') { await props.plugin.call('solidity', 'compile', path) _paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt]) + } else if (tabsState.currentExt === 'circom') { + await props.plugin.call('circuit-compiler', 'compile', path) + _paq.push(['trackEvent', 'editor', 'clickRunFromEditor', tabsState.currentExt]) } }} > @@ -189,7 +192,7 @@ export const TabsUI = (props: TabsUIProps) => { {tabsState.currentExt === 'js' || tabsState.currentExt === 'ts' ? ( - ) : tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul' ? ( + ) : tabsState.currentExt === 'sol' || tabsState.currentExt === 'yul' || tabsState.currentExt === 'circom' ? ( ) : (