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

This commit is contained in:
Justin Starry
2022-01-20 17:33:49 +08:00
committed by GitHub
parent f8db314134
commit 7ba57e7a7c
5 changed files with 232 additions and 271 deletions

View File

@ -218,7 +218,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 {