Refactor: move instructions sysvar serialization out of Message (#22544) (#22595)

(cherry picked from commit 7ba57e7a7c)

Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
mergify[bot]
2022-01-21 13:45:47 +08:00
committed by GitHub
parent 7f10fd6a21
commit 2ddb5b27c1
5 changed files with 232 additions and 271 deletions

View File

@@ -217,7 +217,7 @@ impl Accounts {
message: &SanitizedMessage,
is_owned_by_sysvar: bool,
) -> AccountSharedData {
let data = construct_instructions_data(message);
let data = construct_instructions_data(&message.decompile_instructions());
let owner = if is_owned_by_sysvar {
sysvar::id()
} else {