Closed Vaibhav0-1 closed 22 hours 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 |
I got this when doing yarn dev and switching to standalone:
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