You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the example code and test code to implement the token swap and it return this error to me "The provided token program does not match the token program expected by the swap". And I try to run the testing case and it don't work. I'm using the latest token swap program: SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw (3.0.0 version).
Hey there! It sounds like you're likely passing an account that isn't owned by either token program (SPL Token or SPL Token-2022) to one of the swap program instructions, hence the reason for the error.
If you think this is definitely a bug in the token swap implementation, please open an issue and describe the exact steps to reproduce the bug, however this sounds like it's more likely an issue with your implementation or test specifically.
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 Solana itself.
Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that this is a bug with Solana 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 followed the example code and test code to implement the token swap and it return this error to me "The provided token program does not match the token program expected by the swap". And I try to run the testing case and it don't work. I'm using the latest token swap program: SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw (3.0.0 version).
https://solscan.io/tx/2jvQovmaz2vdjPiGBr8Sf6JKiEM4Ea4cTnz32ah579oRdzdX7ZcFtaftkRbPWDuzqmBhUyY83SiHmpA14CcDvcNv?cluster=devnet
The text was updated successfully, but these errors were encountered: