mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-25 14:15:53 +00:00
@@ -209,7 +209,7 @@ doLedgerEntry(Context const& context)
|
|||||||
.c_str());
|
.c_str());
|
||||||
|
|
||||||
if (!id)
|
if (!id)
|
||||||
return Status{Error::rpcINVALID_PARAMS, "malformedOwner"};
|
return Status{Error::rpcINVALID_PARAMS, "malformedAddress"};
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::uint32_t seq =
|
std::uint32_t seq =
|
||||||
@@ -244,7 +244,7 @@ doLedgerEntry(Context const& context)
|
|||||||
offer.at(JS(account)).as_string().c_str());
|
offer.at(JS(account)).as_string().c_str());
|
||||||
|
|
||||||
if (!id)
|
if (!id)
|
||||||
return Status{Error::rpcINVALID_PARAMS, "malformedAccount"};
|
return Status{Error::rpcINVALID_PARAMS, "malformedAddress"};
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::uint32_t seq =
|
std::uint32_t seq =
|
||||||
@@ -293,7 +293,7 @@ doLedgerEntry(Context const& context)
|
|||||||
state.at(JS(accounts)).as_array().at(1).as_string().c_str());
|
state.at(JS(accounts)).as_array().at(1).as_string().c_str());
|
||||||
|
|
||||||
if (!id1 || !id2)
|
if (!id1 || !id2)
|
||||||
return Status{Error::rpcINVALID_PARAMS, "malformedAccounts"};
|
return Status{Error::rpcINVALID_PARAMS, "malformedAddresses"};
|
||||||
|
|
||||||
else if (!ripple::to_currency(
|
else if (!ripple::to_currency(
|
||||||
currency, state.at(JS(currency)).as_string().c_str()))
|
currency, state.at(JS(currency)).as_string().c_str()))
|
||||||
|
|||||||
Reference in New Issue
Block a user