Skip to content

Commit a1e55c6

Browse files
blockifier: rename standalone adjective variables (#12548)
* apollo_consensus_orchestrator: rename standalone adjective variables * blockifier: rename standalone adjective variables
1 parent b367a18 commit a1e55c6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/blockifier/src/execution/entry_point_execution.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ pub fn get_call_result(
500500
let [failure_flag, retdata_start, retdata_end]: &[MaybeRelocatable; 3] =
501501
(&return_result[2..]).try_into().expect("Return values must be of size 3.");
502502

503-
let failed = if *failure_flag == MaybeRelocatable::from(0) {
503+
let execution_failed = if *failure_flag == MaybeRelocatable::from(0) {
504504
false
505505
} else if *failure_flag == MaybeRelocatable::from(1) {
506506
true
@@ -535,7 +535,7 @@ pub fn get_call_result(
535535
TrackedResource::SierraGas => syscall_handler.base.call.initial_gas - gas,
536536
};
537537
Ok(CallResult {
538-
failed,
538+
failed: execution_failed,
539539
retdata: read_execution_retdata(runner, retdata_size, retdata_start)?,
540540
gas_consumed,
541541
})

crates/blockifier/src/execution/syscalls/syscall_base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ impl<'state> SyscallHandlerBase<'state> {
449449
let call_info = call.execute(self.state, self.context, remaining_gas)?;
450450

451451
let mut raw_retdata = call_info.execution.retdata.0.clone();
452-
let failed = call_info.execution.failed;
452+
let call_failed = call_info.execution.failed;
453453
self.inner_calls.push(call_info);
454-
if failed {
454+
if call_failed {
455455
self.context.revert(revert_idx, self.state)?;
456456

457457
// Delete events and l2_to_l1_messages from the reverted call.

0 commit comments

Comments
 (0)