Gate cpi program account passing (#14443) (#14446)

(cherry picked from commit a8b5a32b50)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-01-06 19:20:49 +00:00
committed by GitHub
parent c455d1b1c5
commit fcc147b4f2
3 changed files with 31 additions and 12 deletions

View File

@@ -546,7 +546,7 @@ impl MessageProcessor {
let _ = keyed_accounts
.iter()
.find_map(|keyed_account| {
if &instruction.program_id == keyed_account.unsigned_key() {
if &program_id == keyed_account.unsigned_key() {
Some(keyed_account)
} else {
None