1
0
Fork 0
forked from lthn/blockchain

gcc compilation fixup

This commit is contained in:
sowle 2020-04-30 10:30:14 +03:00
parent 03052970a6
commit 8a19cd7ae0
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 1 additions and 2 deletions

View file

@ -109,7 +109,7 @@ namespace currency
//---------------------------------------------------------------
// callback should return true to continue iterating through the container
template <typename A, typename B, typename container_t, typename callback_t>
bool handle_2_alternative_types_in_variant_container(const container_t& container, callback_t& cb)
bool handle_2_alternative_types_in_variant_container(const container_t& container, callback_t cb)
{
bool found = false;
for (auto& item : container)

View file

@ -481,7 +481,6 @@ void wallet2::prepare_wti_decrypted_attachments(wallet_public::wallet_transfer_i
{
if (wti.remote_addresses.empty())
{
account_public_address receiver_address = AUTO_VAL_INIT(receiver_address);
handle_2_alternative_types_in_variant_container<tx_receiver, tx_receiver_old>(decrypted_att, [&](const tx_receiver& p) {
std::string addr_str = currency::get_account_address_as_str(p.acc_addr);
wti.remote_addresses.push_back(addr_str);