From 34da162dbda8af4a73339130dfc886dc09cb9638 Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 23 Oct 2024 14:15:36 +0100 Subject: [PATCH] preserve original behaviour --- crates/evm/fuzz/src/strategies/param.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/evm/fuzz/src/strategies/param.rs b/crates/evm/fuzz/src/strategies/param.rs index 7843e17b0a3e..4b7d5faf1214 100644 --- a/crates/evm/fuzz/src/strategies/param.rs +++ b/crates/evm/fuzz/src/strategies/param.rs @@ -104,7 +104,8 @@ fn fuzz_param_inner( (None, None) }; - super::UintStrategy::new(n, fuzz_fixtures, None) + let strategy = super::UintStrategy::new(n, fuzz_fixtures, None); + strategy.with_bounds(Some(min.unwrap()), Some(max.unwrap())) .prop_map(move |x| DynSolValue::Uint(x, n)) .boxed() }