-
Notifications
You must be signed in to change notification settings - Fork 924
add svelte wallet example #3408
Comments
solana-web3.js/examples/react-app/src/context/SelectedWalletAccountContext.tsx Lines 40 to 44 in 3ea78d8
The localStorage in the react-app is not working, because so everytime refresh browser, I will be recgonized as not connected @steveluscher can you take a look at this? Above debug info was found at: https://solana-labs.github.io/solana-web3.js/example/ |
I have a workaround to solve the problem when loading walletAccount from localStorage wallet accounts is empty. this walletAccount can't be used to sign and send transaction, so to send transaction, must connect again |
|
Hi @xcaptain, Thanks for your question! We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of the Solana JavaScript SDK itself. Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that this is a bug with the Solana JavaScript SDK itself, please post your question to the Solana Stack Exchange using this link: https://solana.stackexchange.com/questions/ask This automated message is a result of having added the ‘question’ tag. |
Well, 3 days ago it's a question because I don't know how to implement a wallet button in svelte, but now I know it and made a workable demo app and I think there is a bug in the react-app because localStorage is not working, after refresh browser my last used wallet account doesn't show up. |
It is a bug, but not in the way you might think. Throw up a question on Stack Exchange, and I'll answer it there so that the entire community of Solana developers can benefit from the answer going in to the future. |
I posted my question at: https://solana.stackexchange.com/questions/17070/how-to-implement-a-wallet-button-using-web3-js-v2 I have some basic understandings to web3.js, but need someone to help me sort out my thoughts |
That post asks too many questions at once. If you ask one question at a time, it's more likely to get answered. If you want to post one just asking why Sorry to be pedantic, and not just answer it here. It's important. |
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up. |
I want to use
web3.js
v2 in my sveltekit app, but you only provide react example app, could you provide an official svelte wallet example app?I have originally posted my question at anza-xyz/wallet-adapter#1027 but no one answers. So I followed the react demo app made a simple sveltekit app.
source code: https://github.com/xcaptain/solana-wallet-demo
demo website: https://solana-wallet-demo.pages.dev/
If welcome, I can make a pull request to submit this demo app
The text was updated successfully, but these errors were encountered: