Nit: Use accessor function (#8647)

automerge
This commit is contained in:
Grimes 2020-03-04 18:26:58 -08:00 committed by GitHub
parent dec3da8f9d
commit b321da00b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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 {