Skip to content

Commit

Permalink
Fix: Due to starknet.js issue with detection cairo version having onl…
Browse files Browse the repository at this point in the history
…y constructor, have to handle a case when new Calldata inside ConstructorForm fails and returns only raw parameters
  • Loading branch information
taco-paco committed Oct 6, 2024
1 parent fd7b1ba commit 296061d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/features/Deployment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ const Deployment: React.FC<DeploymentProps> = ({ setActiveTab }) => {
}

const handleDeploySubmit = (data: CallbackReturnType): void => {
handleDeploy(data.starknetjs as BigNumberish[])
handleDeploy(data?.starknetjs ?? (data.raw as BigNumberish[]))
}

const setContractDeclaration = (currentContract: Contract): void => {
Expand Down

0 comments on commit 296061d

Please sign in to comment.