From 69aa9613d7373e2f23a5c573d3f70ab8f897cfad Mon Sep 17 00:00:00 2001 From: Lee *!* Clagett Date: Mon, 8 Apr 2024 14:58:50 -0400 Subject: [PATCH] Fix 'to_bytes' in unit tests --- tests/unit/scanner.test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/scanner.test.cpp b/tests/unit/scanner.test.cpp index e06c9d7..5b1f6d0 100644 --- a/tests/unit/scanner.test.cpp +++ b/tests/unit/scanner.test.cpp @@ -49,6 +49,9 @@ namespace { constexpr const std::chrono::seconds message_timeout{3}; + unsigned char* to_bytes(crypto::ec_scalar &scalar) { return &reinterpret_cast(scalar); } + const unsigned char* to_bytes(const crypto::ec_scalar &scalar) { return &reinterpret_cast(scalar); } + template struct json_rpc_response {