mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
Merge pull request #1004
adca903
wallet_rpc_server: return payment id in make_integrated_address RPC (moneromooo-monero)
This commit is contained in:
commit
51f0ac09c6
@ -473,6 +473,7 @@ namespace tools
|
|||||||
}
|
}
|
||||||
|
|
||||||
res.integrated_address = m_wallet.get_account().get_public_integrated_address_str(payment_id, m_wallet.testnet());
|
res.integrated_address = m_wallet.get_account().get_public_integrated_address_str(payment_id, m_wallet.testnet());
|
||||||
|
res.payment_id = epee::string_tools::pod_to_hex(payment_id);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (std::exception &e)
|
catch (std::exception &e)
|
||||||
|
@ -414,9 +414,11 @@ namespace wallet_rpc
|
|||||||
struct response
|
struct response
|
||||||
{
|
{
|
||||||
std::string integrated_address;
|
std::string integrated_address;
|
||||||
|
std::string payment_id;
|
||||||
|
|
||||||
BEGIN_KV_SERIALIZE_MAP()
|
BEGIN_KV_SERIALIZE_MAP()
|
||||||
KV_SERIALIZE(integrated_address)
|
KV_SERIALIZE(integrated_address)
|
||||||
|
KV_SERIALIZE(payment_id)
|
||||||
END_KV_SERIALIZE_MAP()
|
END_KV_SERIALIZE_MAP()
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user