Replies: 1 comment
-
|
A new version of the wallet and the dapp-kit npm package has been released (see PR iotaledger/iota#8619) to allow dapps to use the current chain when requesting tx signing to the wallet. Closing discussion since now this issue is fixed. Please reopen if necessary. Thank you 🌷 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Currently, when a dApp runs on testnet but the IOTA wallet is configured for mainnet (or vice versa), users encounter an unhelpful error message:
This error doesn't explain the actual problem (network mismatch) and creates confusion, especially for developers testing dApps across different networks.
Current Behavior
Example scenario:
Proposed Solution
Implement cross-network transaction execution with explicit user consent, similar to Sui Wallet's approach:
Proposed Flow
(Wallet: mainnet, dApp: testnet)
"This app is running on testnet, but your IOTA wallet is set to mainnet.
If you wish to proceed, this transaction will process on testnet."
- Reject transaction
- Approve transaction
- Wallet fetches package ID from testnet (dApp's network)
- Transaction executes on testnet
- Wallet global network setting remains mainnet
Key Features
✅ Clear communication - Users understand what's happening
✅ Seamless developer experience - Test on testnet without switching wallet network
✅ No context switching - Wallet stays on preferred network
✅ Multi-network workflows - Interact with multiple networks in one session
✅ Explicit consent - User approves each cross-network transaction
✅ Industry proven - Sui Wallet successfully implements this pattern
Benefits
For Developers:
For Users:
For the Ecosystem:
Reference Implementation
Sui Wallet implements this behavior successfully. When their wallet is on mainnet and a user interacts with a testnet dApp:
This has proven to work well in production.
Technical Considerations
The implementation would require:
Context: I encountered this issue while testing dApps as a dev and noticed that Sui Wallet handles this scenario much more gracefully. I believe IOTA could benefit from a similar UX improvement.
Beta Was this translation helpful? Give feedback.
All reactions