Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer Hook: Not backwards compatible with common wallets #6094

Closed
LubomirKurpel opened this issue Jan 9, 2024 · 1 comment
Closed

Transfer Hook: Not backwards compatible with common wallets #6094

LubomirKurpel opened this issue Jan 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@LubomirKurpel
Copy link

As far as I understand from documentation all the Token-2022 extensions should be backwards compatible with normal transfers from spl-token standard. However when testing Transfer Hooks I was only able to create the token untransferable by common wallets (I tried Phantom, Solflare, Backpack) but the token was transferable by CLI.

When trying to transfer with wallet I get the error message Error processing Instruction 0: custom program error: 0x7dc8348c which translates to Incorrect account provided error. This does not happen if I create ATA account prior to transfer and initiate transfer with CLI.

My guess is that CLI transfer uses TransferChecked function and fetches / appends ExtraAccoountMetaList accounts automatically while wallets do not have this functionality, failing to append meta accounts resulting in wrong payload.

In my case I did not even need meta accounts at all but it looks like transaction needs at least some data to succeed, even if they are blank data.

I tried to ditch all the meta-related code from example program I deployed but had no luck with bypassing this functionality. Maybe I am just missing something?

@joncinque joncinque added the question Further information is requested label Jan 9, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2024

Hi @LubomirKurpel,

Thanks for your question!

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.

@github-actions github-actions bot closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants