Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

fix(native_blockifier): change failure_flag type to bool #1334

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/native_blockifier/src/py_transaction_execution_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub struct PyCallInfo {
#[pyo3(get)]
pub gas_consumed: u64, // Currently not in use.
#[pyo3(get)]
pub failure_flag: PyFelt, // Currently not in use.
pub failure_flag: bool, // Currently not in use.
#[pyo3(get)]
pub retdata: Vec<PyFelt>,
#[pyo3(get)]
Expand Down Expand Up @@ -99,7 +99,7 @@ impl From<CallInfo> for PyCallInfo {
entry_point_type: call.entry_point_type as u8,
calldata: to_py_vec(call.calldata.0.to_vec(), PyFelt),
gas_consumed: execution.gas_consumed,
failure_flag: PyFelt::from(execution.failed as u8),
failure_flag: execution.failed,
retdata: to_py_vec(execution.retdata.0, PyFelt),
execution_resources: PyVmExecutionResources::from(call_info.vm_resources),
events: to_py_vec(execution.events, PyOrderedEvent::from),
Expand Down
Loading