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

undefined deriveCslSplTokenAccount #91

Closed
julianzamt opened this issue Oct 18, 2023 · 3 comments
Closed

undefined deriveCslSplTokenAccount #91

julianzamt opened this issue Oct 18, 2023 · 3 comments
Labels
Bug This is an item that causes unwanted behavior Triage This item needs to be prioritize

Comments

@julianzamt
Copy link

julianzamt commented Oct 18, 2023

Describe the bug
Related to the bug already documented in #26 , when trying to use a csl_token.mint_to in Anchor, the generator infers that I want to pass an ATA, so the client generates a PDA check for the address (Although I'm trying to use a regular TokenAccount).

Nevertheless, the PDA check uses a call to deriveCslSplTokenAccount() that is not defined.
To Reproduce

- name: mint_to
    uses:
      - csl_spl_token.mint_to

image

Expected behavior
To define the fn if needed.

Platform version:

  • CLI Version [e.g. v0.1.0]
  • GenService Version v0.8

Extension (mark with an X the extension):

  • Solana Native [ ]
  • Solana Anchor [x]
@julianzamt julianzamt added Bug This is an item that causes unwanted behavior Triage This item needs to be prioritize labels Oct 18, 2023
@JazielGuerrero
Copy link
Collaborator

When trying to use a csl_token.mint_to in Anchor, the generator infers that I want to pass an ATA, so the client generates a PDA check for the address. However, I'm trying to use a regular TokenAccount.

Duplicate of #26

Nevertheless, if I wanted to use an ata, the PDA check uses a call to deriveCslSplTokenAccount() that is not defined.

This is a bug

Please close this ticket and create a new one to report the bug of undefined deriveCslSplTokenAccount, or, modify this ticket to only reflect that bug undefined deriveCslSplTokenAccount.

@julianzamt julianzamt changed the title deriveCslSplTokenAccount not requested, but nor imported. undefined deriveCslSplTokenAccount Oct 23, 2023
@julianzamt
Copy link
Author

Updated issue to reflect only the undefined fn bug yo avoid issue duplication.

@JazielGuerrero
Copy link
Collaborator

Related to/Duplicate of: #33

@JazielGuerrero JazielGuerrero closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@JazielGuerrero JazielGuerrero removed their assignment Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is an item that causes unwanted behavior Triage This item needs to be prioritize
Projects
None yet
Development

No branches or pull requests

2 participants