diff --git a/src/monero_transfer_utils.cpp b/src/monero_transfer_utils.cpp index 3699541..122911a 100644 --- a/src/monero_transfer_utils.cpp +++ b/src/monero_transfer_utils.cpp @@ -435,7 +435,7 @@ void monero_transfer_utils::create_transaction( const account_keys& sender_account_keys, // this will reference a particular hw::device const uint32_t subaddr_account_idx, const std::unordered_map &subaddresses, - const account_public_address &to_addr, + const address_parse_info &to_addr, uint64_t sending_amount, uint64_t change_amount, uint64_t fee_amount, @@ -609,8 +609,9 @@ void monero_transfer_utils::create_transaction( // TODO: if this is a multisig wallet, create a list of multisig signers we can use std::vector splitted_dsts; tx_destination_entry to_dst = AUTO_VAL_INIT(to_dst); - to_dst.addr = to_addr; + to_dst.addr = to_addr.address; to_dst.amount = sending_amount; + to_dst.is_subaddress = to_addr.is_subaddress; splitted_dsts.push_back(to_dst); // cryptonote::tx_destination_entry change_dst = AUTO_VAL_INIT(change_dst); @@ -756,7 +757,7 @@ void monero_transfer_utils::convenience__create_transaction( create_transaction( actualCall_retVals, account_keys, subaddr_account_idx, subaddresses, - to_addr_info.address, + to_addr_info, sending_amount, change_amount, fee_amount, outputs, mix_outs, extra, // TODO: move to after address diff --git a/src/monero_transfer_utils.hpp b/src/monero_transfer_utils.hpp index 4188521..9ec9058 100644 --- a/src/monero_transfer_utils.hpp +++ b/src/monero_transfer_utils.hpp @@ -270,7 +270,7 @@ namespace monero_transfer_utils const account_keys& sender_account_keys, // this will reference a particular hw::device const uint32_t subaddr_account_idx, // pass 0 for no subaddrs const std::unordered_map &subaddresses, - const account_public_address &to_addr, + const address_parse_info &to_addr, // this _must_ include correct .is_subaddr uint64_t sending_amount, uint64_t change_amount, uint64_t fee_amount,