Skip to content

Commit

Permalink
Fix amm_info
Browse files Browse the repository at this point in the history
  • Loading branch information
oleks-rip committed Nov 11, 2024
1 parent 9d58f11 commit 064bd15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xrpld/rpc/handlers/AMMInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ doAMMInfo(RPC::JsonContext& context)
if (!sle)
return Unexpected(rpcACT_MALFORMED);
ammID = sle->getFieldH256(sfAMMID);
if (ammID->isZero())
return Unexpected(rpcACT_NOT_FOUND);
}

if (params.isMember(jss::account))
Expand Down

0 comments on commit 064bd15

Please sign in to comment.