5. Testing the dApp
Last updated
Last updated
Before releasing, it’s critical to test your Nyvo-built dApp. If you deployed to Solana’s devnet, you can use that environment for testing without real funds. Use a wallet with devnet SOL (Nyvo might automatically airdrop some for you, or you can use Solana CLI to request an airdrop) to simulate user interactions.
Test all module features: e.g., for staking, try staking and unstaking flows; for a launchpad, run through a token sale round on devnet. Observe the on-chain state changes using explorers or the Nyvo developer console (Nyvo may provide a dashboard showing account data). Nyvo’s front-end likely has logging or developer mode to see the transactions being sent.
You can also utilize Solana’s transaction simulation feature to predict outcomes without committing state. The Solana RPC method simulateTransaction
allows you to run a transaction locally on a node and get the result and logs, which is useful for debugging Nyvo’s tools might expose a one-click “Simulate” for any user action, enabling you to see if a transaction would succeed (and how much compute it would consume) before actually sending it. Make sure to test edge cases (e.g., error conditions like trying to buy an item with insufficient balance) to ensure the dApp handles them gracefully (the UI should display transaction errors returned by the program).