From 695292ccd2f6716b6d70958bb1127a1de17cb732 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 25 Aug 2026 18:03:09 -0700 Subject: [PATCH] Fix Memo post broadcast to use wallet public sendOpReturn signature By specifier. --- src/services/memo-post.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/services/memo-post.js b/src/services/memo-post.js index 16100b3..bc6e935 100644 --- a/src/services/memo-post.js +++ b/src/services/memo-post.js @@ -49,16 +49,13 @@ class MemoPost { throw new Error('Memo post requires a wallet.') } - // Spendable outputs used to pay the transaction fee. - const bchUtxos = await this.wallet.getUtxos() + // Refresh the wallet's spendable UTXO store so the broadcast has inputs. + await this.wallet.getUtxos() - // Broadcast the OP_RETURN transaction with the Memo post prefix. - const txid = await this.wallet.sendOpReturn( - this.wallet.walletInfo, - bchUtxos, - message, - MEMO_POST_PREFIX - ) + // The wallet's public sendOpReturn(msg, prefix) resolves walletInfo and + // its own spendable UTXOs internally, so only the message and Memo post + // prefix are passed here. + const txid = await this.wallet.sendOpReturn(message, MEMO_POST_PREFIX) // Reflect the new post in the feed once broadcast succeeds. this._reflectPost(txid, message)