fix address and ms hex reversed

This commit is contained in:
woodser
2019-08-18 14:33:23 -04:00
parent 4e308419fd
commit 46366e05a6
+7 -2
View File
@@ -2568,13 +2568,18 @@ namespace monero {
if (m_w2->multisig()) throw runtime_error("This wallet is already multisig");
if (m_w2->watch_only()) throw runtime_error("This wallet is watch-only and cannot be made multisig");
monero_multisig_init_result result;
result.m_address = m_w2->make_multisig(password, multisig_hexes, threshold);
result.m_multisig_hex = m_w2->get_account().get_public_address_str(m_w2->nettype());
result.m_multisig_hex = m_w2->make_multisig(password, multisig_hexes, threshold);
result.m_address = m_w2->get_account().get_public_address_str(m_w2->nettype());
return result;
}
string monero_wallet::finalize_multisig(const vector<string>& multisig_hexes, const string& password) {
cout << "FINALIZING" << endl;
for (string str : multisig_hexes) {
cout << "String: " << str << endl;
}
// validate state and request
bool ready;
uint32_t threshold, total;