Relative Content

Tag Archive for rustanchorsolana

Borrow Checker Issue with Mutable and Immutable Access to Account

Hi everyone I’m developing a Solana smart contract/Program written in Rust for a lottery application. I’m encountering a borrow checker issue specifically in the claim_prize function. The error indicates that ctx.accounts.lottery is being borrowed mutably and immutably at the same time.

Borrow Checker Issue with Mutable and Immutable Access to Account, RUST

Hi everyone I’m developing a Solana smart contract/Program written in Rust for a lottery application. I’m encountering a borrow checker issue specifically in the claim_prize function. The error indicates that ctx.accounts.lottery is being borrowed mutably and immutably at the same time.