From 296061df1a0b5d5bbc7ecc4ce9d63be8b0729c6d Mon Sep 17 00:00:00 2001 From: taco-paco Date: Sun, 6 Oct 2024 18:30:10 +0900 Subject: [PATCH] Fix: Due to starknet.js issue with detection cairo version having only constructor, have to handle a case when new Calldata inside ConstructorForm fails and returns only raw parameters --- README.md | 1 + plugin/src/features/Deployment/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ae802133..4c9f62ca 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,7 @@ pnpm run deploy; pnpm run serve; ``` +Depending on cairo compiler +nightly may be necessary to run locally ```bash cd api; export VITE_URL=http://localhost:3000 diff --git a/plugin/src/features/Deployment/index.tsx b/plugin/src/features/Deployment/index.tsx index 79575763..eca92dd9 100644 --- a/plugin/src/features/Deployment/index.tsx +++ b/plugin/src/features/Deployment/index.tsx @@ -480,7 +480,7 @@ const Deployment: React.FC = ({ setActiveTab }) => { } const handleDeploySubmit = (data: CallbackReturnType): void => { - handleDeploy(data.starknetjs as BigNumberish[]) + handleDeploy(data?.starknetjs ?? (data.raw as BigNumberish[])) } const setContractDeclaration = (currentContract: Contract): void => {