From 7fad53b1127cd572369bfb68f70a62f31627da02 Mon Sep 17 00:00:00 2001 From: Grimes <39311140+solana-grimes@users.noreply.github.com> Date: Thu, 5 Mar 2020 13:10:20 -0800 Subject: [PATCH] Use iterated account (#8673) automerge --- runtime/src/native_loader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/native_loader.rs b/runtime/src/native_loader.rs index 52c83f9b03..443902abf4 100644 --- a/runtime/src/native_loader.rs +++ b/runtime/src/native_loader.rs @@ -94,7 +94,7 @@ pub fn invoke_entrypoint( let name_vec = &program.try_account_ref()?.data; if let Some(entrypoint) = symbol_cache.read().unwrap().get(name_vec) { unsafe { - return entrypoint(names[0].unsigned_key(), params, instruction_data); + return entrypoint(program.unsigned_key(), params, instruction_data); } } let name = match str::from_utf8(name_vec) { @@ -120,7 +120,7 @@ pub fn invoke_entrypoint( return Err(NativeLoaderError::EntrypointNotFound.into()); } }; - let ret = entrypoint(names[0].unsigned_key(), params, instruction_data); + let ret = entrypoint(program.unsigned_key(), params, instruction_data); symbol_cache .write() .unwrap()