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

Commit

Permalink
Change failure_flag type to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
OriStarkware committed Jan 14, 2024
1 parent 53a3ed1 commit fe597a3
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit fe597a3

Please sign in to comment.