Skip to content

Commit

Permalink
Ed's comments (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 authored Oct 29, 2024
1 parent 7c08b58 commit 9ce2061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/xrpld/app/tx/detail/MPTokenAuthorize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ MPTokenAuthorize::preclaim(PreclaimContext const& ctx)
{
auto const sleMptIssuance = ctx.view.read(
keylet::mptIssuance(ctx.tx[sfMPTokenIssuanceID]));
assert(sleMptIssuance);
if (!sleMptIssuance)
return tefINTERNAL;

Expand Down
4 changes: 2 additions & 2 deletions src/xrpld/rpc/detail/TransactionSign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ checkPayment(
if (!dstAccountID)
return RPC::invalid_field_error("tx_json.Destination");

if (((doPath == false) && params.isMember(jss::build_path)) ||
(params.isMember(jss::build_path) && amount.holds<MPTIssue>()))
if (params.isMember(jss::build_path) &&
((doPath == false) || amount.holds<MPTIssue>()))
return RPC::make_error(
rpcINVALID_PARAMS,
"Field 'build_path' not allowed in this context.");
Expand Down

0 comments on commit 9ce2061

Please sign in to comment.