mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-04 09:16:43 +00:00
Hotfix for account_info, ledger_data and ip() (#134)
* remove option to create account from seed * catch errors in derived().ip() * checks keys.size() before accessing
This commit is contained in:
@@ -48,16 +48,8 @@ doAccountInfo(Context const& context)
|
||||
// Get info on account.
|
||||
auto accountID = accountFromStringStrict(strIdent);
|
||||
if (!accountID)
|
||||
{
|
||||
if (!request.contains("strict") || !request.at("strict").as_bool())
|
||||
{
|
||||
accountID = accountFromSeed(strIdent);
|
||||
if (!accountID)
|
||||
return Status{Error::rpcBAD_SEED};
|
||||
}
|
||||
else
|
||||
return Status{Error::rpcACT_MALFORMED};
|
||||
}
|
||||
return Status{Error::rpcACT_MALFORMED};
|
||||
|
||||
assert(accountID.has_value());
|
||||
|
||||
auto key = ripple::keylet::account(accountID.value());
|
||||
|
||||
Reference in New Issue
Block a user