Gate cpi program account passing (#14443)

This commit is contained in:
Jack May
2021-01-05 13:53:41 -08:00
committed by GitHub
parent 53d65009a0
commit a8b5a32b50
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