From 4f35fb23c6fcba5f387a30ed990cef23c24f4e32 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Fri, 27 Sep 2024 07:31:51 +0000 Subject: [PATCH] cleanup loaders --- program/src/open.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/program/src/open.rs b/program/src/open.rs index 94c7dec..93df2ad 100644 --- a/program/src/open.rs +++ b/program/src/open.rs @@ -22,10 +22,11 @@ pub fn process_open(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramResult }; signer_info.is_signer()?; payer_info.is_signer()?; - proof_info - .has_seeds(&[PROOF, signer_info.key.as_ref()], args.bump, &ore_api::ID)? - .is_empty()? - .is_writable()?; + proof_info.is_empty()?.is_writable()?.has_seeds( + &[PROOF, signer_info.key.as_ref()], + args.bump, + &ore_api::ID, + )?; system_program.is_program(&system_program::ID)?; slot_hashes_info.is_sysvar(&sysvar::slot_hashes::ID)?;