Skip to content

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

@julianzamt

Description

@julianzamt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementThis improve the product or Código's source codeTodoThis item hasn't been startedUsabilityThis is an enhancement on the product usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions