-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
refactor: solana sign and send transaction #2646
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
eGetting the following error while calling s.signAndSendTransaction is not a function Steps to repro:
The |
… options in base connector signature
Good catch @enesozturk, thanks! I have added it with c741a8e Screen.Recording.2024-08-05.at.15.17.10.mov |
…or/solana-sign-and-send-transaction
…or/solana-sign-and-send-transaction
…or/solana-sign-and-send-transaction
<Heading size="xs" textTransform="uppercase" pb="2"> | ||
Sign and Send Transaction | ||
Sign and Send Transaction (dApp) | ||
</Heading> | ||
<SolanaSendTransactionTest /> | ||
</Box> | ||
<Box> | ||
<Heading size="xs" textTransform="uppercase" pb="2"> | ||
Sign and Send Transaction (Wallet) | ||
</Heading> | ||
<SolanaSignAndSendTransaction /> | ||
</Box> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between Dapp and Wallet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dapp: the dapp request to wallet sign transaction and sends to blockchain
Wallet: the dapp request to wallet sign and send the transaction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I feel this is confusing, so you are doing basically
Request wallet to sign transaction => Manually send it from lab
Request wallet to sign and send transaction directly
Why send the tx from lab in the first place? isn't just requesting the signing enough?
Just a nit tho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is the two ways of doing it and both are valid: the first case is testing the signTransaction
and sendTransaction
functions, the second is testing signAndSendTransaction
which sends for wallet handle the blockchain connection.
Could sign a versioned tx with Phantom, but not a regular tx |
Description
This PR changes the logic for Solana WalletConnect connector to send the transaction for the wallet to sign and send instead of sending in the dapp. It goes alongside with reown-com/web-examples#664.
Type of change
Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
Screen.Recording.2024-08-02.at.18.32.46.mov
Checklist