paltalabs / create-soroban-dapp

Boilerplate for Soroban dApps in ReactJS
https://create-soroban-dapp.vercel.app
Apache License 2.0
7 stars 13 forks source link

Issue #17: Handle Missing Contract Warning #28

Closed Vaibhav0-1 closed 22 hours ago

Vaibhav0-1 commented 5 days ago

Objectives of the PR: Improve user experience by providing a clear warning when no contract is deployed on the standalone chain. Address the issue where the error message was not specific about the absence of a deployed contract.

Changes Made: Added a new function handleContractInteraction to handle contract interactions and provide a toast notification if no contract is deployed on the standalone chain. Modified the chain switch logic to use the new function, which checks if the active chain is 'standalone' and alerts the user to deploy a contract first.

Possible Causes and Ideas for Resolution: Previously, users received a generic error message that did not specify the cause. The new implementation alerts users specifically about the need for contract deployment when using the standalone chain, thus resolving confusion.

Resolves: #17

vercel[bot] commented 5 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
create-soroban-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 8:09pm
create-soroban-dapp-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 8:09pm
chopan123 commented 2 days ago

I got this when doing yarn dev and switching to standalone: image