Skip to content

Commit

Permalink
Fix toStrand() MPT bad path check
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Dec 11, 2024
1 parent 1cd85cc commit 0f837fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xrpld/app/paths/detail/PaySteps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ toStrand(
if (hasAccount && (pe.getAccountID() == noAccount()))
return {temBAD_PATH, Strand{}};

if (hasMPT && (hasCurrency || hasAccount || hasIssuer))
if (hasMPT && (hasCurrency || hasAccount))
return {temBAD_PATH, Strand{}};

if (hasMPT && hasIssuer &&
(pe.getIssuerID() != getMPTIssuer(pe.getMPTID())))
return {temBAD_PATH, Strand{}};
}

Expand Down

0 comments on commit 0f837fd

Please sign in to comment.