magicblock-labs / Solana.Unity-SDK

Open-Source Unity-Solana SDK with Full RPC coverage, NFT support and more

Home Page:https://solana.unity-sdk.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to make a transactions when log in via the Adapter method (Phantom wallet)

tieugame2110 opened this issue · comments

image
image
I have a transaction calling function, and it works fine when I log in by entering the Phrase Seed. However, it encounters an error when I log in with the Phantom wallet.

Error details:
Log Reason: Transaction signature verification failure
Log ServerErrorCode: -32003

@tieugame2110 you should be using Web3.Wallet.SignAndSendTransaction rather than directly using the Rpc. The wallet wrapper contains the logic to deduplicate signatures and handle the cross platform signature.

See here for a minting example.