Skip to content

Commit 0be133b

Browse files
blockifier: box ExecutionError in TransactionExecutionError
1 parent 64fcf0f commit 0be133b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/apollo_rpc_execution/src/execution_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ fn blockifier_error_mapping() {
802802
let child = blockifier::execution::errors::EntryPointExecutionError::RecursionDepthExceeded;
803803
let selector = EntryPointSelector(felt!("0x111"));
804804
let blockifier_err = BlockifierTransactionExecutionError::ExecutionError {
805-
error: child,
805+
error: Box::new(child),
806806
class_hash,
807807
storage_address,
808808
selector,

crates/blockifier/src/transaction/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub enum TransactionExecutionError {
8282
DeclareTransactionError { class_hash: ClassHash },
8383
#[error("{}", gen_tx_execution_error_trace(self))]
8484
ExecutionError {
85-
error: EntryPointExecutionError,
85+
error: Box<EntryPointExecutionError>,
8686
class_hash: ClassHash,
8787
storage_address: ContractAddress,
8888
selector: EntryPointSelector,

crates/blockifier/src/transaction/transactions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl<S: State> Executable<S> for L1HandlerTransaction {
128128

129129
execute_call.non_reverting_execute(state, context, remaining_gas).map(Some).map_err(
130130
|error| TransactionExecutionError::ExecutionError {
131-
error,
131+
error: Box::new(error),
132132
class_hash,
133133
storage_address,
134134
selector,
@@ -312,7 +312,7 @@ impl<S: State> Executable<S> for InvokeTransaction {
312312
let call_info =
313313
execute_call.non_reverting_execute(state, context, remaining_gas).map_err(|error| {
314314
TransactionExecutionError::ExecutionError {
315-
error,
315+
error: Box::new(error),
316316
class_hash,
317317
storage_address,
318318
selector: entry_point_selector,

0 commit comments

Comments
 (0)