Skip to content

Commit

Permalink
Merge pull request #275 from NethermindEth/fix/handle-ConstructorForm…
Browse files Browse the repository at this point in the history
…-error-situation

Fix: Due to starknet.js issue with detection cairo version having onl…
  • Loading branch information
varex83 authored Oct 8, 2024
2 parents 2e16a4c + 296061d commit d091f93
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 d091f93

Please sign in to comment.