From f81dd00300b13accd9409b7027bf1c3dc2f2bdf8 Mon Sep 17 00:00:00 2001 From: Esteve Soler Arderiu Date: Thu, 14 Nov 2024 18:15:58 +0100 Subject: [PATCH] Revert `ResourceBounds` field to `u128`. --- 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), ]) } }