Skip to content

Commit

Permalink
Add MPT support to Check
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtatcam committed Sep 28, 2024
1 parent 76cdc59 commit b1947e9
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 161 deletions.
6 changes: 2 additions & 4 deletions src/xrpld/app/paths/Flow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,10 @@ flow(
// The src account may send either xrp,iou,mpt. The dst account may receive
// either xrp,iou,mpt. Since XRP, IOU, and MPT amounts are represented by
// different types, use templates to tell `flow` about the amount types.
path::RippleCalc::Output result;
std::visit(
return std::visit(
[&, &strands_ = strands]<typename TIn, typename TOut>(
TIn const*&&, TOut const*&&) {
result = finishFlow(
return finishFlow(
sb,
srcAsset,
dstAsset,
Expand All @@ -168,7 +167,6 @@ flow(
},
getTypedAmt(srcAsset),
getTypedAmt(dstAsset));
return result;
}

} // namespace ripple
Loading

0 comments on commit b1947e9

Please sign in to comment.