mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Replace strUnHex pair return type with optional<Blob>
This commit is contained in:
@@ -246,9 +246,9 @@ public:
|
||||
{
|
||||
auto data = strUnHex(
|
||||
jrr[jss::ledger][jss::ledger_data].asString());
|
||||
if (BEAST_EXPECT(data.second))
|
||||
if (BEAST_EXPECT(data))
|
||||
{
|
||||
Serializer s(data.first.data(), data.first.size());
|
||||
Serializer s(data->data(), data->size());
|
||||
std::uint32_t seq = 0;
|
||||
BEAST_EXPECT(s.getInteger<std::uint32_t>(seq, 0));
|
||||
BEAST_EXPECT(seq == 3);
|
||||
|
||||
Reference in New Issue
Block a user