From b321da00b455fae1939f6482560fc9229c5ab28c Mon Sep 17 00:00:00 2001 From: Grimes <39311140+solana-grimes@users.noreply.github.com> Date: Wed, 4 Mar 2020 18:26:58 -0800 Subject: [PATCH] Nit: Use accessor function (#8647) automerge --- runtime/src/message_processor.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/runtime/src/message_processor.rs b/runtime/src/message_processor.rs index 6b9fed4df2..1d39997d7b 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 {