forked from such-gitea/wownero-lws
Update ::wire:: to be closer to Monero variant (#70)
This commit is contained in:
committed by
Lee *!* Clagett
parent
3e0555e07d
commit
e1bd9541f1
@@ -72,7 +72,11 @@ namespace lws
|
||||
|
||||
expect<lws::rates> crypto_compare_::operator()(std::string&& body) const
|
||||
{
|
||||
return wire::json::from_bytes<lws::rates>(std::move(body));
|
||||
lws::rates out{};
|
||||
const std::error_code error = wire::json::from_bytes(std::move(body), out);
|
||||
if (error)
|
||||
return error;
|
||||
return {std::move(out)};
|
||||
}
|
||||
} // rpc
|
||||
} // lws
|
||||
|
||||
Reference in New Issue
Block a user