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

payer attr not generated for init of spl accounts #82

Closed
julianzamt opened this issue Oct 10, 2023 · 1 comment
Closed

payer attr not generated for init of spl accounts #82

julianzamt opened this issue Oct 10, 2023 · 1 comment
Labels
Bug This is an item that causes unwanted behavior

Comments

@julianzamt
Copy link

Describe the bug
When generating code for a ix that use a spl account marked as init, the generated code doesn't include the mandatory payer attribute.

To Reproduce

 - name: mint
    uses:
      - csl_spl_token.initialize_mint2
      - csl_spl_assoc_token.create
      - csl_spl_token.mint_to
      - csl_spl_token.set_authority
    inputs:
      - name: mint
        type: csl_spl_token.Mint
        solana:
          attributes: [ init ]
...

Generated code:
image

Expected behavior
To use the feePayer as rent-payer if not specified, or the designed rent-payer if present.

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]

Additional context
Add any other context about the problem here.

@julianzamt julianzamt added Bug This is an item that causes unwanted behavior Triage This item needs to be prioritize labels Oct 10, 2023
@JazielGuerrero JazielGuerrero added high and removed Triage This item needs to be prioritize labels Oct 10, 2023
@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
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
Projects
None yet
Development

No branches or pull requests

2 participants