Quantcast
Channel: When would #[account(signer)] constraint be used instead of Signer account type? - Solana Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Jimii for When would #[account(signer)] constraint be used instead...

I think it's a style preference since both do the same thing.With #[account(signer)] and AccountInfo you will also have to include the CHECK: rustdoc comment to explain why you're using an unsigned...

View Article



When would #[account(signer)] constraint be used instead of Signer account type?

The docs.rs page mentions:Consider using the Signer type if you would only have this constrainton the account.What would be some examples where you would want to use the #[account(signer)] constraint...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images