When running a solana-test-validator, which appears to be running properly when using the CLI, my browser wallets do not appear to be connecting properly. For both sollet and phantom, when I try to connect to localnet, I only see a loading gif.
When I switch back to devnet or mainnet and back, I can see everything just fine, but any time I switch back to localnet I just get a loading gif if I try to run any transactions. With Phantom, I could initially see a balance (10 sol which I airdropped from the CLI), but as soon as I connect my wallet to the react app I built (using this tutorial: The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom - DEV Community), my phantom wallet just goes back to a loading gif (and none of my transaction attempts work). I also tried using sollet when following this tutorial: Programming on Solana - An Introduction | paulx also to no avail (in the sollet case I never even got to see an initial balance).
If it’s helpful at all, when I connect my wallet, my terminal window with the test validator goes nuts for a bit, and the app suggests that there is a wallet connected (the react app updates to display the button for making a counter creation transaction in this case), so it appears that the test validator is functioning, but no transactions will go through (I can switch to devnet then back to localnet, and I’ll see my balance again, but no transactions will appear, now will the window change to indicate I’ve created the counter by running the program).
I’ve been googling like crazy, but somehow I’ve seen nothing about this issue. I don’t think I have anything weird in any config, since I’ve set everything up following the solana docs. I’m on Ubuntu, using zsh and my browser is brave.
Any help would be greatly appreciated! Thanks