From 16a7d7c7581dfe447517953d694d501e1e658e4c Mon Sep 17 00:00:00 2001 From: Rohit Ranjan Date: Wed, 22 Nov 2023 18:48:49 +0530 Subject: [PATCH] update workflow file --- .github/workflows/devnet-deploy.yml | 3 +-- plugin/src/features/Deployment/index.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/devnet-deploy.yml b/.github/workflows/devnet-deploy.yml index 826e6d45..3a2a5216 100644 --- a/.github/workflows/devnet-deploy.yml +++ b/.github/workflows/devnet-deploy.yml @@ -127,8 +127,7 @@ jobs: with: task-definition: task-definition.json container-name: "devnet" - # image: shardlabs/starknet-devnet-rs:${{ inputs.version }} - image: shardlabs/starknet-devnet:${{ inputs.version }} + image: shardlabs/starknet-devnet-rs:${{ inputs.version }} - name: Deploy Amazon ECS task definition uses: aws-actions/amazon-ecs-deploy-task-definition@v1 diff --git a/plugin/src/features/Deployment/index.tsx b/plugin/src/features/Deployment/index.tsx index cce4127b..087dc1c7 100644 --- a/plugin/src/features/Deployment/index.tsx +++ b/plugin/src/features/Deployment/index.tsx @@ -7,7 +7,7 @@ import { type CallDataObject, type Contract } from '../../utils/types/contracts' -import { getConstructor, getParameterType } from '../../utils/utils' +import { getConstructor, getParameterType, getShortenedHash } from '../../utils/utils' import Container from '../../components/ui_components/Container' import { type AccordianTabs } from '../Plugin' @@ -127,7 +127,11 @@ const Deployment: React.FC = ({ setActiveTab }) => { await remixClient.call( 'notification' as any, 'toast', - `ℹ️ Contract with classHash: ${selectedContract.classHash} already has been declared, proceeding to deployment...` + `ℹ️ Contract with classHash: ${getShortenedHash( + selectedContract.classHash, + 6, + 4 + )} already has been declared, proceeding to deployment...` ) } catch (error) { const declareResponse = await account.declare({