dex: Make referral account readonly in new_order (#179)

This commit is contained in:
Kirill Fomichev 2021-10-31 16:03:18 +03:00 committed by GitHub
parent e744bfb9aa
commit a3648a2b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ pub fn new_order(
AccountMeta::new_readonly(*rent_sysvar_id, false),
];
if let Some(key) = srm_account_referral {
accounts.push(AccountMeta::new(*key, false))
accounts.push(AccountMeta::new_readonly(*key, false))
}
Ok(Instruction {
program_id: *program_id,