From 971d106b565d589c7ab345903f69c8f36c7bb6c6 Mon Sep 17 00:00:00 2001 From: Eugene Kovalev Date: Fri, 17 Jan 2025 23:08:46 +0100 Subject: [PATCH] Adapt Poseidon permute syscall tests to mocked host implementation --- .../benchmarking/tests/syscalls_integrity.rs | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs b/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs index 1294922c778..383cfafc7e6 100644 --- a/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs +++ b/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs @@ -1050,20 +1050,23 @@ where { run_tester::(|_, _| { 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()