Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Aug 27, 2024
1 parent 1b2d555 commit fd2f099
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 52 deletions.
4 changes: 0 additions & 4 deletions src/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ impl StateDump {
.collect(),
}
}

pub fn item(&self) -> BTreeMap<u64, Value> {
self.items.clone()
}
}

impl Serialize for StateDump {
Expand Down
10 changes: 8 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use self::args::CmdArgs;
use cairo_lang_sierra::{
extensions::{core::CoreTypeConcrete, starknet::StarkNetTypeConcrete},
extensions::{
circuit::CircuitTypeConcrete, core::CoreTypeConcrete, starknet::StarkNetTypeConcrete,
},
ProgramParser,
};
use clap::Parser;
Expand Down Expand Up @@ -65,10 +67,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
CoreTypeConcrete::Felt252(_) => Value::parse_felt(&iter.next().unwrap()),
CoreTypeConcrete::GasBuiltin(_) => Value::U128(args.available_gas.unwrap()),
CoreTypeConcrete::RangeCheck(_)
| CoreTypeConcrete::RangeCheck96(_)
| CoreTypeConcrete::Bitwise(_)
| CoreTypeConcrete::Pedersen(_)
| CoreTypeConcrete::Poseidon(_)
| CoreTypeConcrete::SegmentArena(_) => Value::Unit,
| CoreTypeConcrete::SegmentArena(_)
| CoreTypeConcrete::Circuit(
CircuitTypeConcrete::AddMod(_) | CircuitTypeConcrete::MulMod(_),
) => Value::Unit,
CoreTypeConcrete::StarkNet(inner) => match inner {
StarkNetTypeConcrete::System(_) => Value::Unit,
_ => todo!(),
Expand Down
46 changes: 0 additions & 46 deletions src/utils.rs

This file was deleted.

0 comments on commit fd2f099

Please sign in to comment.