diff --git a/src/ripple/app/tx/impl/PayChan.cpp b/src/ripple/app/tx/impl/PayChan.cpp index 99ad2bb83..9e7830ca5 100644 --- a/src/ripple/app/tx/impl/PayChan.cpp +++ b/src/ripple/app/tx/impl/PayChan.cpp @@ -674,7 +674,7 @@ PayChanClaim::preflight(PreflightContext const& ctx) if (isXRP(authAmt)) serializePayChanAuthorization(msg, k.key, authAmt.xrp()); else - serializePayChanAuthorization(msg, k.key, authAmt.iou()); + serializePayChanAuthorization(msg, k.key, authAmt.iou(), authAmt.getCurrency(), authAmt.getIssuer()); if (!verify(pk, msg.slice(), *sig, /*canonical*/ true)) return temBAD_SIGNATURE; diff --git a/src/ripple/protocol/PayChan.h b/src/ripple/protocol/PayChan.h index d2d570935..beae88883 100644 --- a/src/ripple/protocol/PayChan.h +++ b/src/ripple/protocol/PayChan.h @@ -42,7 +42,9 @@ inline void serializePayChanAuthorization( Serializer& msg, uint256 const& key, - IOUAmount const& amt) + IOUAmount const& amt, + Currency const& cur, + AccountID const& iss) { msg.add32(HashPrefix::paymentChannelClaim); msg.addBitString(key); @@ -57,6 +59,8 @@ serializePayChanAuthorization( amt.mantissa() | (static_cast(amt.exponent() + 512 + 256 + 97) << (64 - 10))); + msg.addBitString(cur); + msg.addBitString(iss); } } // namespace ripple