From 5ade72818bf6d012bba02ff60f28a9965d6b674b Mon Sep 17 00:00:00 2001 From: naughtyfox Date: Mon, 11 Mar 2019 19:19:50 +0300 Subject: Wallet API: multisig_tx_set passing bug fixed --- src/wallet/api/wallet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/wallet/api/wallet.cpp') diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 44cd67657..3202f2755 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -1429,7 +1429,9 @@ PendingTransaction *WalletImpl::createTransaction(const string &dst_addr, const } if (multisig().isMultisig) { - transaction->m_signers = m_wallet->make_multisig_tx_set(transaction->m_pending_tx).m_signers; + auto tx_set = m_wallet->make_multisig_tx_set(transaction->m_pending_tx); + transaction->m_pending_tx = tx_set.m_ptx; + transaction->m_signers = tx_set.m_signers; } } catch (const tools::error::daemon_busy&) { // TODO: make it translatable with "tr"? -- cgit v1.2.3