Skip to content

Commit

Permalink
Fix functions that were renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
mqxf committed Sep 18, 2023
1 parent febbe08 commit 4ae2773
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions pallets/gear/src/benchmarking/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ where
init_block::<T>(None);

let salt = vec![];
let program_id = ProgramId::generate(CodeId::generate(&code), &salt);
let program_id = ProgramId::generate_from_user(CodeId::generate(&code), &salt);
Gear::<T>::upload_program(
RawOrigin::Signed(caller).into(),
code,
Expand Down Expand Up @@ -105,7 +105,7 @@ where
CurrencyOf::<T>::deposit_creating(&caller, 200_000_000_000_000u128.unique_saturated_into());
let code = benchmarking::generate_wasm2(16.into()).unwrap();
let salt = vec![];
let program_id = ProgramId::generate(CodeId::generate(&code), &salt);
let program_id = ProgramId::generate_from_user(CodeId::generate(&code), &salt);
Gear::<T>::upload_program(
RawOrigin::Signed(caller.clone()).into(),
code,
Expand Down Expand Up @@ -145,7 +145,7 @@ where
init_block::<T>(None);

let salt = vec![];
let program_id = ProgramId::generate(CodeId::generate(WASM_BINARY), &salt);
let program_id = ProgramId::generate_from_user(CodeId::generate(WASM_BINARY), &salt);
Gear::<T>::upload_program(
RawOrigin::Signed(caller).into(),
WASM_BINARY.to_vec(),
Expand Down Expand Up @@ -211,7 +211,7 @@ where
init_block::<T>(None);

let salt = vec![];
let program_id = ProgramId::generate(CodeId::generate(WASM_BINARY), &salt);
let program_id = ProgramId::generate_from_user(CodeId::generate(WASM_BINARY), &salt);
Gear::<T>::upload_program(
RawOrigin::Signed(caller.clone()).into(),
WASM_BINARY.to_vec(),
Expand Down Expand Up @@ -266,7 +266,7 @@ where
init_block::<T>(None);

let salt = vec![];
let program_id = ProgramId::generate(CodeId::generate(WASM_BINARY), &salt);
let program_id = ProgramId::generate_from_user(CodeId::generate(WASM_BINARY), &salt);
Gear::<T>::upload_program(
RawOrigin::Signed(caller.clone()).into(),
WASM_BINARY.to_vec(),
Expand Down Expand Up @@ -315,7 +315,7 @@ where
init_block::<T>(None);

let salt = vec![];
let program_id = ProgramId::generate(CodeId::generate(WASM_BINARY), &salt);
let program_id = ProgramId::generate_from_user(CodeId::generate(WASM_BINARY), &salt);
Gear::<T>::upload_program(
RawOrigin::Signed(caller.clone()).into(),
WASM_BINARY.to_vec(),
Expand Down
2 changes: 1 addition & 1 deletion pallets/gear/src/benchmarking/tests/syscalls_integrity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ where
)
.expect("Failed to upload read_big_state binary");

let pid = ProgramId::generate(CodeId::generate(WASM_BINARY), salt);
let pid = ProgramId::generate_from_user(CodeId::generate(WASM_BINARY), salt);
utils::run_to_next_block::<T>(None);

let string = String::from("hi").repeat(4095);
Expand Down

0 comments on commit 4ae2773

Please sign in to comment.