From f73fa1cf2f847eab672c75d366dd81519e690b87 Mon Sep 17 00:00:00 2001 From: Iluvmagick Date: Wed, 9 Oct 2024 19:47:17 +0400 Subject: [PATCH] Fixed merkle_proof TODO. --- .../crypto3/marshalling/containers/types/merkle_proof.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crypto3/libs/marshalling/zk/include/nil/crypto3/marshalling/containers/types/merkle_proof.hpp b/crypto3/libs/marshalling/zk/include/nil/crypto3/marshalling/containers/types/merkle_proof.hpp index f58653d8d1..22028de1d0 100644 --- a/crypto3/libs/marshalling/zk/include/nil/crypto3/marshalling/containers/types/merkle_proof.hpp +++ b/crypto3/libs/marshalling/zk/include/nil/crypto3/marshalling/containers/types/merkle_proof.hpp @@ -24,8 +24,7 @@ // SOFTWARE. //---------------------------------------------------------------------------// -#ifndef CRYPTO3_MARSHALLING_MERKLE_PROOF_HPP -#define CRYPTO3_MARSHALLING_MERKLE_PROOF_HPP +#pragma once #include #include @@ -67,9 +66,7 @@ namespace nil { TTypeBase, // path_element_t typename merkle_proof_path_element::type, - // TODO: use nil::marshalling::option::fixed_size_storage - nil::marshalling::option::sequence_size_field_prefix< - nil::marshalling::types::integral>>; + nil::marshalling::option::sequence_fixed_size>; }; template @@ -207,4 +204,3 @@ namespace nil { } // namespace marshalling } // namespace crypto3 } // namespace nil -#endif // CRYPTO3_MARSHALLING_MERKLE_PROOF_HPP