diff --git a/basics/program-derived-addresses/poseidon/program-derived-addresses/programs/program-derived-addresses/src/lib.rs b/basics/program-derived-addresses/poseidon/program-derived-addresses/programs/program-derived-addresses/src/lib.rs index 701d4d20e..4ba2323ed 100644 --- a/basics/program-derived-addresses/poseidon/program-derived-addresses/programs/program-derived-addresses/src/lib.rs +++ b/basics/program-derived-addresses/poseidon/program-derived-addresses/programs/program-derived-addresses/src/lib.rs @@ -9,7 +9,7 @@ pub mod program_derived_addresses { Ok(()) } pub fn increment(ctx: Context) -> Result<()> { - ctx.accounts.page_visits.page_visits = ctx.accounts.page_visits.page_visits + 1; + ctx.accounts.page_visits.page_visits += 1; Ok(()) } }