wallet: refactor, include 'FeeCalculation' inside 'CreatedTransactionResult'

This commit is contained in:
furszy
2022-05-24 12:29:51 -03:00
parent 7a45c33d1f
commit 198fcca162
8 changed files with 15 additions and 25 deletions

View File

@@ -258,9 +258,8 @@ public:
bilingual_str& fail_reason) override
{
LOCK(m_wallet->cs_wallet);
FeeCalculation fee_calc_out;
std::optional<CreatedTransactionResult> txr = CreateTransaction(*m_wallet, recipients, change_pos,
fail_reason, coin_control, fee_calc_out, sign);
fail_reason, coin_control, sign);
if (!txr) return {};
fee = txr->fee;
change_pos = txr->change_pos;