Skip to content

Commit

Permalink
Fix master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mertwole committed Oct 5, 2023
1 parent 5d5b227 commit 09417c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions utils/runtime-fuzzer/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions utils/wasm-gen/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 09417c1

Please sign in to comment.