Convert syscall accounts to credit only accounts (#4915)

This commit is contained in:
Pankaj Garg
2019-07-02 15:17:28 -07:00
committed by GitHub
parent 12ef0c25b5
commit bf319ab06d
2 changed files with 6 additions and 6 deletions

View File

@@ -95,9 +95,9 @@ pub fn vote(
authorized_voter_pubkey,
&[
// request slot_hashes syscall account after vote_pubkey
AccountMeta::new(syscall::slot_hashes::id(), false),
AccountMeta::new_credit_only(syscall::slot_hashes::id(), false),
// request current syscall account after that
AccountMeta::new(syscall::current::id(), false),
AccountMeta::new_credit_only(syscall::current::id(), false),
],
);