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.
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.