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

CCTP transfer to Solana does not work if the target wallet USDC ATA is not already created #691

Closed
evgeniko opened this issue Sep 6, 2024 · 2 comments

Comments

@evgeniko
Copy link
Collaborator

evgeniko commented Sep 6, 2024

The following error message is returned when the target wallet on Solana does not have an already created usdc associated token account. So a USDC transfer from Chain X to Solana, will always fail with that at the moment, with the sdk.

transactionMessage: 'Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4',
transactionLogs: [
  'Program CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd invoke [1]',
  'Program log: Instruction: ReceiveMessage',
  'Program CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3 invoke [2]',
  'Program log: Instruction: HandleReceiveMessage',
  'Program log: AnchorError caused by account: recipient_token_account. Error Code: AccountNotInitialized. Error Number: 3012. Error Message: The program expected this account to be already initialized.',
  'Program CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3 consumed 10141 of 60551 compute units',
  'Program CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3 failed: custom program error: 0xbc4',
  'Program CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd consumed 149590 of 200000 compute units',
  'Program CCTPmbSD7gX1bxKPAmg77w8oFzNFpaQiQUWD43TKaecd failed: custom program error: 0xbc4'
]
@obumnwabude
Copy link

@evgeniko This seems not to be specific to USDC, but to all SPL tokens seemingly. If you also send ETH from Sepolia, as it arrives Solana as WETH, the same error is thrown.

kev1n-peters added a commit to wormholelabs-xyz/wormhole-sdk-ts that referenced this issue Sep 9, 2024
@wormhole-foundation wormhole-foundation deleted a comment Sep 9, 2024
kev1n-peters added a commit to wormholelabs-xyz/wormhole-sdk-ts that referenced this issue Sep 10, 2024
kev1n-peters added a commit that referenced this issue Sep 10, 2024
* solana cctp: create ata if not exists in redeem function

Addresses #691

* 0.10.5 version bump
@kev1n-peters
Copy link
Collaborator

Fixed in #692

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants