-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't get the wallet to open to initiate a transaction. #981
Comments
Looks like this is not being satisfied const handleMainButtonClick = async () => {
const WalletConnectModal = ({ isOpen, onRequestClose }) => {
); 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'}} />
</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.
—
Reply to this email directly, view it on GitHub
<#981 (comment)>,
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
2024-06-03.15-39-56.mp4
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.
The text was updated successfully, but these errors were encountered: