Skip to content

Commit

Permalink
Revert ResourceBounds field to u128. (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
azteca1998 authored Nov 14, 2024
1 parent 6f14879 commit 0b11466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/starknet/resource_bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ use starknet_types_core::felt::Felt;
pub struct ResourceBounds {
pub resource: Felt,
pub max_amount: u64,
pub max_price_per_unit: u64,
pub max_price_per_unit: u128,
}

impl ResourceBounds {
pub(crate) fn into_value(self) -> Value {
Value::Struct(vec![
Value::Felt(self.resource),
Value::U64(self.max_amount),
Value::U64(self.max_price_per_unit),
Value::U128(self.max_price_per_unit),
])
}
}

0 comments on commit 0b11466

Please sign in to comment.