From 09417c1c0445bb2334780717c383018d8bf625de Mon Sep 17 00:00:00 2001 From: mertwole Date: Thu, 5 Oct 2023 16:24:52 +0300 Subject: [PATCH] Fix master merge --- utils/runtime-fuzzer/src/utils.rs | 3 +-- utils/wasm-gen/src/tests.rs | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/utils/runtime-fuzzer/src/utils.rs b/utils/runtime-fuzzer/src/utils.rs index 33a675bfb72..75cbec793ca 100644 --- a/utils/runtime-fuzzer/src/utils.rs +++ b/utils/runtime-fuzzer/src/utils.rs @@ -79,8 +79,7 @@ pub(crate) fn default_generator_set(test_input_id: String) -> ExtrinsicGenerator } pub(crate) fn default_fuzzing_config() -> FuzzingConfig { - let sender_balance = - (block_gas_cost() + MAX_VALUE_SENT as u128) * OVERALL_EXTRINSICS_COUNT as u128; + let sender_balance = (block_gas_cost() + MAX_VALUE_SENT) * OVERALL_EXTRINSICS_COUNT as u128; FuzzingConfig { initial_sender_balance: sender_balance..=sender_balance, diff --git a/utils/wasm-gen/src/tests.rs b/utils/wasm-gen/src/tests.rs index 0b9dc6383ff..9826e0c10c2 100644 --- a/utils/wasm-gen/src/tests.rs +++ b/utils/wasm-gen/src/tests.rs @@ -194,9 +194,9 @@ fn ptr_setters_work() { }], ); - let mut injection_amounts = SysCallsInjectionAmounts::all_never(); - injection_amounts.set(InvocableSysCall::Loose(SysCallName::Reply), 1, 1); - let sys_calls_config = SysCallsConfigBuilder::new(injection_amounts) + let mut injection_types = SysCallsInjectionTypes::all_never(); + injection_types.set(InvocableSysCall::Loose(SysCallName::Reply), 1, 1); + let sys_calls_config = SysCallsConfigBuilder::new(injection_types) .with_params_config(params_config) .with_pointer_writes_config(pointer_writes_config) .with_error_processing_config(ErrorProcessingConfig::All)