Skip to content

Commit

Permalink
Adapt Poseidon permute syscall tests to mocked host implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ekovalev committed Jan 17, 2025
1 parent da3b837 commit 971d106
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions pallets/gear/src/benchmarking/tests/syscalls_integrity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1050,20 +1050,23 @@ where
{
run_tester::<T, _, _, T::AccountId>(|_, _| {
let input = [1_u64; 12];
let expected_hash: [u64; 12] = [
16428316519797902711,
13351830238340666928,
682362844289978626,
12150588177266359240,
17253754121560429078,
451271978634734260,
18275013734444918923,
2683513634502220619,
11021424422480713329,
9919697188140387146,
12631792409692871611,
12948832098596279325,
];
// TODO: uncomment when the actual host implementatoin of Poseidon permute is ready
// let expected_hash: [u64; 12] = [
// 16428316519797902711,
// 13351830238340666928,
// 682362844289978626,
// 12150588177266359240,
// 17253754121560429078,
// 451271978634734260,
// 18275013734444918923,
// 2683513634502220619,
// 11021424422480713329,
// 9919697188140387146,
// 12631792409692871611,
// 12948832098596279325,
// ];
// TODO: remove this line when the actual host implementatoin of Poseidon permute is ready
let expected_hash: [u64; 12] = input;

let mp = vec![Kind::PoseidonPermute(input, expected_hash)]
.encode()
Expand Down

0 comments on commit 971d106

Please sign in to comment.