All Questions
1 question
2
votes
2
answers
743
views
TryingToInitPayerAsProgramAccount. Error Number: 4101. You cannot/should not initialize the payer account as a program account
I have a simple program:
#[program]
pub mod my_cool_project {
use super::*;
pub fn initialize(ctx: Context<Initialize>) -> Result<()> {
let counter = &mut ctx....