Howdy! I'm new to Solana and Rust development. I recently opened a raffle that accepted wrapped SOL, but after it ended, the collect_proceeds function is throwing an error with the transaction: panicked at 'called Option::unwrap() on a None value', programs/draffle/src/lib.rs:282:67
Could I fix this easily without redeploying the program?
Sorry for the late reply, this has to do with the CLI not providing the treasury fee account, I think if you have deployed for yourself only, simply set PROTOCOL_FEE_BPS to 0. This would make it work.
Howdy! I'm new to Solana and Rust development. I recently opened a raffle that accepted wrapped SOL, but after it ended, the collect_proceeds function is throwing an error with the transaction: panicked at 'called
Option::unwrap()
on aNone
value', programs/draffle/src/lib.rs:282:67Could I fix this easily without redeploying the program?