From 2769b852b16c912c9bb099089ae05aa8cc8f9c62 Mon Sep 17 00:00:00 2001 From: highlander Date: Fri, 15 May 2026 14:16:07 -0300 Subject: [PATCH] feat(ripple): pass memo field to device for THORChain swap routing Forward tx.value.memo to the RippleSignTx protobuf message so the firmware can include it in the XRPL Memos array of the signed transaction. --- packages/hdwallet-keepkey/src/ripple.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/hdwallet-keepkey/src/ripple.ts b/packages/hdwallet-keepkey/src/ripple.ts index a94efb57..c95b9f15 100644 --- a/packages/hdwallet-keepkey/src/ripple.ts +++ b/packages/hdwallet-keepkey/src/ripple.ts @@ -26,6 +26,9 @@ export async function rippleSignTx(transport: Transport, msg: core.RippleSignTx) if (msg.payment.destinationTag !== undefined) payment.setDestinationTag(parseInt(msg.payment.destinationTag)); signTx.setPayment(payment); + const memo = msg.tx.value.memo; + if (memo && memo.trim() && memo.trim() !== ' ') signTx.setMemo(memo.trim()); + const resp = await transport.call(Messages.MessageType.MESSAGETYPE_RIPPLESIGNTX, signTx, { msgTimeout: core.LONG_TIMEOUT, omitLock: true,