Update-executable flag in pre-accounts (#14622) (#14625)

(cherry picked from commit 66b54b852d)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-01-16 03:05:12 +00:00
committed by GitHub
parent 09392ee562
commit 0367b32533

View File

@ -155,6 +155,7 @@ impl PreAccount {
pre.lamports = account.lamports;
pre.owner = account.owner;
pre.executable = account.executable;
if pre.data.len() != account.data.len() {
// Only system account can change data size, copy with alloc
pre.data = account.data.clone();