diff --git a/src/components/workspace/BuildProject/BuildProject.tsx b/src/components/workspace/BuildProject/BuildProject.tsx index 0a0201b..a187cf4 100644 --- a/src/components/workspace/BuildProject/BuildProject.tsx +++ b/src/components/workspace/BuildProject/BuildProject.tsx @@ -24,6 +24,7 @@ import s from './BuildProject.module.scss'; import AppIcon from '@/components/ui/icon'; import { useSettingAction } from '@/hooks/setting.hooks'; import { useForm } from 'antd/lib/form/Form'; +import packageJson from 'package.json'; import { AddressInput, AmountInput, @@ -109,6 +110,10 @@ const BuildProject: FC = ({ const connectedWalletAddress = useTonAddress(); const { sandboxBlockchain } = globalWorkspace; + const tactVersion = packageJson.dependencies['@tact-lang/compiler'].replace( + '^', + '' + ); const { Option } = Select; const [deployForm] = useForm(); @@ -666,9 +671,14 @@ const BuildProject: FC = ({ description={`- Select a contract to build
${ isAutoBuildAndDeployEnabled() - ? '- Auto-build and deploy is enabled for Sandbox and can be changed in settings.' + ? '- Auto-build and deploy is enabled for Sandbox and can be changed in settings.
' : '' - }`} + } + ${ + activeProject?.language === 'tact' && + '
- Tact version: ' + tactVersion + } + `} allowedFile={['fc', 'tact']} onCompile={async () => { if (