Fix 'to_bytes' in unit tests

This commit is contained in:
Lee *!* Clagett 2024-04-08 14:58:50 -04:00
parent d9c9a75fc2
commit 69aa9613d7

View file

@ -49,6 +49,9 @@ namespace
{
constexpr const std::chrono::seconds message_timeout{3};
unsigned char* to_bytes(crypto::ec_scalar &scalar) { return &reinterpret_cast<unsigned char&>(scalar); }
const unsigned char* to_bytes(const crypto::ec_scalar &scalar) { return &reinterpret_cast<const unsigned char&>(scalar); }
template<typename T>
struct json_rpc_response
{