Merge pull request #4409

7a056f44 WalletAPI: multisigSignData bug fixed (naughtyfox)
This commit is contained in:
Riccardo Spagni 2018-09-29 22:11:13 +02:00
parent 402349760f
commit e4130e6ae6
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -200,7 +200,11 @@ std::string PendingTransactionImpl::multisigSignData() {
throw std::runtime_error("wallet is not multisig"); throw std::runtime_error("wallet is not multisig");
} }
auto cipher = m_wallet.m_wallet->save_multisig_tx(m_pending_tx); tools::wallet2::multisig_tx_set txSet;
txSet.m_ptx = m_pending_tx;
txSet.m_signers = m_signers;
auto cipher = m_wallet.m_wallet->save_multisig_tx(txSet);
return epee::string_tools::buff_to_hex_nodelimer(cipher); return epee::string_tools::buff_to_hex_nodelimer(cipher);
} catch (const std::exception& e) { } catch (const std::exception& e) {
m_status = Status_Error; m_status = Status_Error;