magicblock-labs / Solana.Unity-SDK

Open-Source Unity-Solana SDK with Full RPC coverage, NFT support and more
https://solana.unity-sdk.gg
MIT License
153 stars 85 forks source link

[Bug] Cannot Swap Tokens With The SDK #222

Open Eggysgames opened 5 months ago

Eggysgames commented 5 months ago

Describe the bug Trying to do a swap with the SDK triggers security by Phantom and also says that no balances are changed, and they arn't when approved. It happened in my code and also on the live demo provided by this github at

https://magicblock-labs.github.io/Solana.Unity-SDK/

To Reproduce Steps to reproduce the behavior: Connect Phantom wallet Do the basic Swap outlined by the docs Swap any tokens Wont work and get security warning as well as no token changes

Expected behavior Code should allow swapping between tokens

Screenshots

Screenshot 2024-04-16 173622 DK/assets/113896751/93b4c452-608b-4f2e-97d9-d90a61040a7f)

Desktop (please complete the following information):

Additional context Add any other context about the problem here. code

Eggysgames commented 5 months ago

Actually the swap did eventually go through with the live demo but it still has all the warning messages attached and my code won't work though when I press approve?