From 313e9f23a205e745b079b2546f5835856827e882 Mon Sep 17 00:00:00 2001 From: Fernando Pelliccioni Date: Thu, 5 Sep 2024 17:06:57 +0200 Subject: [PATCH] fix compilation (#31) --- ci_utils | 2 +- include/kth/domain/chain/token_data.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci_utils b/ci_utils index 86e9d3f49..97609587e 160000 --- a/ci_utils +++ b/ci_utils @@ -1 +1 @@ -Subproject commit 86e9d3f49557ac49f7b06232f9fff2884436736f +Subproject commit 97609587edd5dbc1471c61bfb2bca2fd1de6dc69 diff --git a/include/kth/domain/chain/token_data.hpp b/include/kth/domain/chain/token_data.hpp index 0a1453382..f2565623f 100644 --- a/include/kth/domain/chain/token_data.hpp +++ b/include/kth/domain/chain/token_data.hpp @@ -170,7 +170,7 @@ size_t serialized_size(fungible const& x) { inline constexpr size_t serialized_size(non_fungible const& x) { - if (x.commitment.empty()) return 0; + if (std::size(x.commitment) == 0) return 0; return kth::size_variable_integer(x.commitment.size()) + x.commitment.size(); }