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
@@ -77,7 +77,11 @@ namespace rpc
|
||||
|
||||
expect<minimal_chain_pub> minimal_chain_pub::from_json(std::string&& source)
|
||||
{
|
||||
return wire::json::from_bytes<minimal_chain_pub>(std::move(source));
|
||||
minimal_chain_pub out{};
|
||||
std::error_code err = wire::json::from_bytes(std::move(source), out);
|
||||
if (err)
|
||||
return err;
|
||||
return {std::move(out)};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user