Closed keolamation closed 5 months ago
btw, even if i connect to a diff solana wallet I still get the same error.
Looks like this is not being satisfied
const handleMainButtonClick = async () => { if (isConnected && publicKey) {
leading to this
} else {
setIsModalOpen(true);
}
which then in turns opens your Modal here
const WalletConnectModal = ({ isOpen, onRequestClose }) => { return ( <Modal isOpen={isOpen} onRequestClose={onRequestClose} contentLabel="Connect Wallet" className="modal" overlayClassName="overlay"
<button onClick={onRequestClose}style={{textAlign:'right'}}>❌ <h2 style={{textAlign:'center'}}>Connect Your Wallet <WalletMultiButton style = {{marginLeft:'55px'}} />
</Modal>
); };
I didn't have a look through the logic of the transactions but at the moment when you press the transaction button you're just opening the modal because isConnected and publicKey are not satisfied so we never reach the transaction code. Log both just inside the handleMainButtonClick before the if statement and see what they are logging should be a simple fix to move forward.
I mentioned that in the question, when i was logging it, isconnected isnt being satisfied but i don’t know why considering the footer uses isconnected and uses that to gen the pubkey the client sees at the widget base.
On Sun, Jun 9, 2024 at 7:07 AM Eiresown @.***> wrote:
Looks like this is not being satisfied
const handleMainButtonClick = async () => { if (isConnected && publicKey) {
leading to this } else { setIsModalOpen(true); }
which then in turns opens your Modal here
const WalletConnectModal = ({ isOpen, onRequestClose }) => { return (
<button onClick={onRequestClose}style={{textAlign:'right'}}>❌ <h2 style={{textAlign:'center'}}>Connect Your Wallet <WalletMultiButton style = {{marginLeft:'55px'}} />
); };
I didn't have a look through the logic of the transactions but at the moment when you press the transaction button you're just opening the modal because isConnected and publicKey are not satisfied so we never reach the transaction code. Log both just inside the handleMainButtonClick before the if statement and see what they are logging should be a simple fix to move forward.
— Reply to this email directly, view it on GitHub https://github.com/anza-xyz/wallet-adapter/issues/981#issuecomment-2156623126, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRPH2IPX2EJZODIARMIU7TZGROSTAVCNFSM6AAAAABIXLWXUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGYZDGMJSGY . You are receiving this because you authored the thread.Message ID: @.***>
Hi @keolamation,
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 Wallet Adapter itself.
Questions like yours deserve a purpose-built Q & A forum. Unless there exists evidence that this is a bug with Wallet Adapter 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.
I'll be honest, this is why and I sware to god on this: If I ever become anyone influential I will do everything I can to make the general public aware of how AWEFUL Solana and Solana development is. This doesn't deserve the market cap it has. I haven't had any of my questions answered on Solana stack exchange and the actual devs just ban people and "move the issue" to be someone else's problem. The WORST blockchain, I've ever had the misfortune trying to develop on.
Describe the bug after connecting, if I hit the "buy" button it just reopens to model to "connect" a wallet and the developer tools complain the the public key field isn't satisfied.
To Reproduce my app.jsx
walletconnectmodal
my appwalletprovider:
Expected behavior
The wallet launches in browser to request that the user sends X amount of Solana/USDC to receiver address.
Screenshots
https://github.com/anza-xyz/wallet-adapter/assets/65205225/840c8dcb-d46e-4837-9bcb-3904edd341f5
Desktop (please complete the following information):
Additional context
I coded most of this but, I started asking chatgpt 4o and it seems my code got even more wrong because this documentation is too messy for chat gpt to train off of. So, I'd really like a direct answer/assistance.