-
Notifications
You must be signed in to change notification settings - Fork 44
Brave doesn't work if there is a partial sign with different fee payer #83
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
Comments
@yamijuan, can you quickly test what happens here if you call |
FWIW this is a use case we've seen with Solana Pay, where the transaction served will be partially signed for various reasons I've been able to repro this issue with a slightly modified version of our solana-pay-scaffold: https://github.com/mcintyre94/solana-pay-scaffold (change-fee-payer branch) To test it, copy .env.example to .env, put any private key with devnet SOL in as The I've also tested the |
Moving this discussion over to brave/brave-browser#28955. (@jordansexton, I can't close this issue myself) |
Closed per @steveluscher, thanks for looking into this everyone! |
@yamijuan Thanks for the report, we've merged a fix in Brave Nightly, it should be working now on our latest Nightly, if you could help confirm that it's also fixed on your end, that would be great. We're in the process of uplifting the fix into Brave Beta and Brave Release, for Brave Beta, it could be this or next week, and for Brave Release, current planned release date is 03/22 (next week). Thanks! |
We have the case where we want to cover any transaction fees for the user so the way we currently have it is as follows:
feePayer
as the keypair's public key we have storedBuffer.from
andTransaction.from
sendTransaction
from wallet adapterWhat happens at this point is brave wallet pops up but without any action, just the account info and it gets stuck there forever
What we did to fix it is instead of calling
sendTransaction
from wallet adapter, we callsignTransaction
and sign the tx and the send it withconnection.sendRawTransaction
after serialize it. This fix got us to believe there is an issue in brave implementation onwallet.signAndSendTransaction
that's being used in brave'ssendTransaction
in its adapterAlso removing the feepayer and the signature works too. Someone from our team thinks it might be an issue with signature order in brave.
with @steveluscher 's permission, here is a video https://drive.google.com/file/d/14jX-Fqds9oBCwDgNkcJxWmmodB_tpX-P/view
The text was updated successfully, but these errors were encountered: