diff --git a/runtime/src/message_processor.rs b/runtime/src/message_processor.rs index 6b9fed4df..1d39997d7 100644 --- a/runtime/src/message_processor.rs +++ b/runtime/src/message_processor.rs @@ -198,10 +198,7 @@ impl MessageProcessor { .collect(); keyed_accounts.append(&mut keyed_accounts2); - assert!( - keyed_accounts[0].try_account_ref()?.executable, - "root program not executable" - ); + assert!(keyed_accounts[0].executable()?, "account not executable"); let root_program_id = keyed_accounts[0].unsigned_key(); for (id, process_instruction) in &self.instruction_processors { if id == root_program_id {