mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
fix: Improve json parsing of currency issuers (#7110)
This commit is contained in:
@@ -128,7 +128,7 @@ issueFromJson(json::Value const& v)
|
||||
}
|
||||
auto const issuer = parseBase58<AccountID>(issStr.asString());
|
||||
|
||||
if (!issuer)
|
||||
if (!issuer || *issuer == noAccount() || *issuer == xrpAccount())
|
||||
{
|
||||
Throw<json::Error>("issueFromJson issuer must be a valid account");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user