Skip to content

Add user input for /// CHECK: msgs #95

Description

@julianzamt

Is your enhancement request related to a problem? Please describe.
Anchor advise against passing accounts as account_info whenever possible. However, sometimes it is correct, and in those cases the framework forces the user to include a /// CHECK: msg explaining the reason of receiving an account over no checks are going to be performed.

https://www.anchor-lang.com/docs/the-accounts-struct#safety-checks

The generator now creates such message, but hardcoded, just to avoid the error.

Describe the solution you'd like
Give the user the possibility of pass input for such message from the CIDL.

Metadata

Metadata

Labels

DoneThis has been merged to developEnhancementThis improve the product or Código's source code

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions