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

This commit is contained in:
Jack May 2021-01-15 17:48:29 -08:00 committed by GitHub
parent 97f499ce12
commit 66b54b852d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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();