From 0b11466033d7f070fcdd13cb81681b0fd9aaaa00 Mon Sep 17 00:00:00 2001 From: MrAzteca Date: Thu, 14 Nov 2024 18:23:09 +0100 Subject: [PATCH] Revert `ResourceBounds` field to `u128`. (#21) --- src/starknet/resource_bounds.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/starknet/resource_bounds.rs b/src/starknet/resource_bounds.rs index 1d4f6e5..c9a17cc 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: u64, + pub max_price_per_unit: u128, } impl ResourceBounds { @@ -14,7 +14,7 @@ impl ResourceBounds { 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), ]) } }