ReadableAccount.data returns slice (#16686)

* ReadAbleAccount.data returns slice

* more slice fixup

* more slice

* slice
This commit is contained in:
Jeff Washington (jwash)
2021-04-20 16:41:16 -05:00
committed by GitHub
parent 08d5253651
commit 03f7b251b8
5 changed files with 18 additions and 18 deletions

View File

@@ -154,7 +154,7 @@ impl NativeLoader {
// still exists even after invoke_context.remove_first_keyed_account() is called
(
*program.unsigned_key(),
&program.try_account_ref()?.data().clone(),
&program.try_account_ref()?.data().to_vec(),
)
};