- You are using code that has been imported from an external source. - Exercise caution with the contract code before executing it. -
+ {activeProject?.path === `${baseProjectPath}/temp` && ( ++ You are using code that has been imported from an external source. + Exercise caution with the contract code before executing it. +
+ )} +
Below options will be used to send internal message and call getter
method on contract after the contract is deployed.
diff --git a/src/components/workspace/ContractInteraction/TactContractInteraction.tsx b/src/components/workspace/ContractInteraction/TactContractInteraction.tsx
index 6dcb147..aef58a4 100644
--- a/src/components/workspace/ContractInteraction/TactContractInteraction.tsx
+++ b/src/components/workspace/ContractInteraction/TactContractInteraction.tsx
@@ -1,3 +1,4 @@
+import { baseProjectPath, useProject } from '@/hooks/projectV2.hooks';
import { TactType } from '@/interfaces/workspace.interface';
import { FC } from 'react';
import { TactABIUi } from '../ABIUi';
@@ -10,16 +11,20 @@ const TactContractInteraction: FC
- You are using code that has been imported from an external source.
- Exercise caution with the contract code before executing it.
-
+ You are using code that has been imported from an external source.
+ Exercise caution with the contract code before executing it.
+
Below options will be used to call receiver and call getter method on
contract after the contract is deployed.
diff --git a/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx b/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx
index a66d0a3..caf6658 100644
--- a/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx
+++ b/src/components/workspace/WorkspaceSidebar/WorkspaceSidebar.tsx
@@ -4,7 +4,7 @@ import { AppData } from '@/constant/AppData';
import { useSettingAction } from '@/hooks/setting.hooks';
import { Form, Input, Popover, Select, Switch } from 'antd';
import Link from 'next/link';
-import { FC } from 'react';
+import { FC, useEffect } from 'react';
import s from './WorkspaceSidebar.module.scss';
export type WorkSpaceMenu = 'code' | 'build' | 'test-cases' | 'setting';
@@ -61,6 +61,12 @@ const WorkspaceSidebar: FC