diff --git a/runtime/src/accounts.rs b/runtime/src/accounts.rs index c68a692fd8fdfd..35cf615adf1a10 100644 --- a/runtime/src/accounts.rs +++ b/runtime/src/accounts.rs @@ -1522,8 +1522,8 @@ mod tests { executed_units: 0, accounts_data_len_delta: 0, }, - programs_modified_by_tx: LoadedProgramsForTxBatch::default(), - programs_updated_only_for_global_cache: LoadedProgramsForTxBatch::default(), + programs_modified_by_tx: Box::new(LoadedProgramsForTxBatch::default()), + programs_updated_only_for_global_cache: Box::new(LoadedProgramsForTxBatch::default()), } } diff --git a/runtime/src/bank/tests.rs b/runtime/src/bank/tests.rs index e0bc502011522c..e99a249f8fd9c9 100644 --- a/runtime/src/bank/tests.rs +++ b/runtime/src/bank/tests.rs @@ -173,8 +173,8 @@ fn new_execution_result( executed_units: 0, accounts_data_len_delta: 0, }, - programs_modified_by_tx: LoadedProgramsForTxBatch::default(), - programs_updated_only_for_global_cache: LoadedProgramsForTxBatch::default(), + programs_modified_by_tx: Box::new(LoadedProgramsForTxBatch::default()), + programs_updated_only_for_global_cache: Box::new(LoadedProgramsForTxBatch::default()), } }