solana-developers / solana-actions

https://solana-developers.github.io/solana-actions/
Apache License 2.0
98 stars 40 forks source link

Phantom says "Unable to simulate" #30

Open cyyyu opened 2 weeks ago

cyyyu commented 2 weeks ago

Hey first of all thanks for the awesome examples for solana actions. When I visit the transfer-sol example and try to scan the qrcode with phantom wallet, phantom says "Unable to simulate". I'm wondering what's the issue here and is there a way to work around? 20D3577D-6A34-4993-B82B-928613C60F38_1_201_a

nickfrosty commented 1 week ago

the example code is on devnet, so your wallet must be selected to devnet

some wallets have issues performing full simulation on devnet

cyyyu commented 1 week ago

@nickfrosty In my application I've changed it to the mainnet and still got this issue.

nickfrosty commented 3 days ago

this would be an issue with the wallet itself or your rpc provider maybe giving a stale blockhash. try with a different wallet app (solflare or backpack for example) to see if you experience the same simulation issue.

you can also try simulating the transaction yourself in your code to see if you get an issues