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 creation of PDAs without fields #46

Open
julianzamt opened this issue Sep 6, 2023 · 0 comments
Open

Allow the creation of PDAs without fields #46

julianzamt opened this issue Sep 6, 2023 · 0 comments
Assignees
Labels
Done This has been merged to develop Enhancement This improve the product or Código's source code Use cases This is an enhancement on the product supported use cases

Comments

@julianzamt
Copy link

Is your enhancement request related to a problem? Please describe.
Since PDAs are used not only to store data, but to allow programs to sign txs, it may be useful to allow to define a PDA without fields.
Usually, these PDAs are not even created, but only used to sign cpi calls.

Depending on the use case, this PDA should be checked or not.

Now it is not possible to define in the CIDL a type without fields, thus forcing the need of a workaround to use this pattern.

Describe the solution you'd like
Allow the creation of at least PDAs without fields.
Not sure if this is needed also for Not PDAs.

Describe alternatives you've considered
Workaround: send it as an accountInfo, but proper checks must be added manually.

@julianzamt julianzamt added Enhancement This improve the product or Código's source code Triage This item needs to be prioritize labels Sep 6, 2023
@JazielGuerrero JazielGuerrero added In progress This is actively being worked on Use cases This is an enhancement on the product supported use cases and removed Triage This item needs to be prioritize labels Dec 4, 2023
@JazielGuerrero JazielGuerrero added Done This has been merged to develop and removed In progress This is actively being worked on labels Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Done This has been merged to develop Enhancement This improve the product or Código's source code Use cases This is an enhancement on the product supported use cases
Projects
None yet
Development

No branches or pull requests

2 participants