anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.44k stars 906 forks source link

sendTransaction doesn't work with String data #978

Closed josephchung796 closed 3 weeks ago

josephchung796 commented 1 month ago

Describe the bug I wrote a Solana program which takes the String data as an account. And once I encoded the String data with buffer-layout, and called sendTransaction from useWallet hook, it totally failed with the below error message. Error: Expected String

Screenshots image

Desktop (please complete the following information):

jordaaash commented 3 weeks ago

This doesn't look like a Wallet Adapter issue, but even if it is, we can't test it from the provided description. Please provide a link to a repo that reproduces it if you still think it is, and I'll reopen.