From d10229b3ec219d9873c461076f56ed10c51bc258 Mon Sep 17 00:00:00 2001 From: Sabaun Taraki Date: Mon, 9 Oct 2023 19:25:29 +0300 Subject: [PATCH] Apply @mertwole review results --- utils/runtime-fuzzer/src/gear_calls.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/runtime-fuzzer/src/gear_calls.rs b/utils/runtime-fuzzer/src/gear_calls.rs index 568a2fda68f..8607a335033 100644 --- a/utils/runtime-fuzzer/src/gear_calls.rs +++ b/utils/runtime-fuzzer/src/gear_calls.rs @@ -54,6 +54,9 @@ static_assertions::const_assert!(MAX_SALT_SIZE <= gear_core::message::MAX_PAYLOA const ID_SIZE: usize = mem::size_of::(); const GAS_AND_VALUE_SIZE: usize = mem::size_of::<(u64, u128)>(); +// Used to make sure that generators will not exceed `Unstructured` size as it's used not only +// to generate things like wasm code or message payload but also to generate some auxiliary +// data, for example index in some vec. const AUXILIARY_SIZE: usize = 512; /// This trait provides ability for [`ExtrinsicGenerator`]s to fetch messages