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

Allow the use of the CSL in Anchor code generation #33

Open
8 tasks
julianzamt opened this issue Sep 4, 2023 · 0 comments
Open
8 tasks

Allow the use of the CSL in Anchor code generation #33

julianzamt opened this issue Sep 4, 2023 · 0 comments
Labels
Enhancement This improve the product or Código's source code Todo This item hasn't been started Usability This is an enhancement on the product usage

Comments

@julianzamt
Copy link

julianzamt commented Sep 4, 2023

Is your enhancement request related to a problem? Please describe.
Allow the use of the CSL in Anchor code generation.
Now it is not possible to switch from one target to the other (Native - Anchor) for methods that include a csl cpi without re-writing the CIDL code.

CIDL

- name: stake
   uses:
    - csl_spl_token.transfer_checked

Generating and building for Anchor gives the following error:
image

Describe the solution you'd like
Handle code generation to avoid the need of rewritings for at least each of the solana targets.

(while) Adding support to CSL, the following issues should be address or fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement This improve the product or Código's source code Todo This item hasn't been started Usability This is an enhancement on the product usage
Projects
None yet
Development

No branches or pull requests

2 participants