diff --git a/src/starknet/resource_bounds.rs b/src/starknet/resource_bounds.rs index c9a17cc..1d4f6e5 100644 --- a/src/starknet/resource_bounds.rs +++ b/src/starknet/resource_bounds.rs @@ -6,7 +6,7 @@ use starknet_types_core::felt::Felt; pub struct ResourceBounds { pub resource: Felt, pub max_amount: u64, - pub max_price_per_unit: u128, + pub max_price_per_unit: u64, } impl ResourceBounds { @@ -14,7 +14,7 @@ impl ResourceBounds { Value::Struct(vec![ Value::Felt(self.resource), Value::U64(self.max_amount), - Value::U128(self.max_price_per_unit), + Value::U64(self.max_price_per_unit), ]) } } diff --git a/src/value.rs b/src/value.rs index fe892c8..de61868 100644 --- a/src/value.rs +++ b/src/value.rs @@ -181,10 +181,12 @@ impl Value { CoreTypeConcrete::Sint64(_) => todo!(), CoreTypeConcrete::Nullable(info) => self.is(registry, &info.ty), CoreTypeConcrete::Uninitialized(_) => matches!(self, Self::Uninitialized { .. }), - CoreTypeConcrete::Felt252DictEntry(info) => matches!(self, Self::FeltDictEntry { ty, .. } if *ty == info.ty), + CoreTypeConcrete::Felt252DictEntry(info) => { + matches!(self, Self::FeltDictEntry { ty, .. } if *ty == info.ty) + } CoreTypeConcrete::SquashedFelt252Dict(info) => { matches!(self, Self::FeltDict { ty, .. } if *ty == info.ty) - }, + } CoreTypeConcrete::Pedersen(_) => matches!(self, Self::Unit), CoreTypeConcrete::Poseidon(_) => matches!(self, Self::Unit), CoreTypeConcrete::Span(_) => todo!(), diff --git a/src/vm/uint128.rs b/src/vm/uint128.rs index fe35766..3da80ec 100644 --- a/src/vm/uint128.rs +++ b/src/vm/uint128.rs @@ -1,5 +1,5 @@ use super::EvalAction; -use crate::{debug::debug_signature, Value}; +use crate::Value; use cairo_lang_sierra::{ extensions::{ core::{CoreLibfunc, CoreType}, @@ -248,8 +248,7 @@ mod test { let result = run_test_program(program); - let Value::U64(payload) = result.last().unwrap() - else { + let Value::U64(payload) = result.last().unwrap() else { panic!("No output"); };