From 9ff1c0159036ec506d12047c626a2bab6a2cd332 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 28 Aug 2024 19:09:08 +0530 Subject: [PATCH 1/2] fix free function option --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 658eb20fba..6217e2d3c5 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -926,6 +926,7 @@ export const EditorUI = (props: EditorUIProps) => { if (freeFunctionNode) { executeFreeFunctionAction.label = intl.formatMessage({ id: 'editor.executeFreeFunction2' }, { name: freeFunctionNode.name }) freeFunctionAction = editor.addAction(executeFreeFunctionAction) + freeFunctionCondition.set(true) } const functionImpl = nodesAtPosition.find((node) => node.kind === 'function') @@ -945,7 +946,6 @@ export const EditorUI = (props: EditorUIProps) => { executeSolgptExplainFunctionAction.label = intl.formatMessage({ id: 'editor.explainFunctionSol' }) solgptExplainFunctionAction = editor.addAction(executeSolgptExplainFunctionAction) } - freeFunctionCondition.set(!!freeFunctionNode) } contextmenu._onContextMenu = (...args) => { if (args[0]) args[0].event?.preventDefault() From 25d1090b24d7f1d513787326f3971f65b25e7ff6 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 28 Aug 2024 19:53:30 +0530 Subject: [PATCH 2/2] fix icon for bridges --- libs/remix-ui/run-tab/src/lib/components/environment.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/components/environment.tsx b/libs/remix-ui/run-tab/src/lib/components/environment.tsx index d499b9c917..4f6c2964ae 100644 --- a/libs/remix-ui/run-tab/src/lib/components/environment.tsx +++ b/libs/remix-ui/run-tab/src/lib/components/environment.tsx @@ -23,7 +23,7 @@ export function EnvironmentUI(props: EnvironmentProps) { 'L2 - Arbitrum': 'https://bridge.arbitrum.io/' } - const isL2 = (providerDisplayName: string) => providerDisplayName === 'L2 - Optimism' || providerDisplayName === 'L2 - Arbitrum' + const isL2 = (providerDisplayName: string) => providerDisplayName && (providerDisplayName.startsWith('L2 - Optimism') || providerDisplayName.startsWith('L2 - Arbitrum')) return (