Skip to content

Commit 6b82cfa

Browse files
committed
Merge df4e99d into merged_master (Elements PR #1423)
2 parents 5c10c04 + df4e99d commit 6b82cfa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/primitives/confidential.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class CConfidentialValue : public CConfidentialCommitment<9, 8, 9>
149149
return -1;
150150
}
151151

152-
assert(IsExplicit());;
152+
assert(IsExplicit());
153153
return ReadBE64(&vchCommitment[1]);
154154
}
155155
void SetToAmount(CAmount nAmount);

src/wallet/spend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,8 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal(
15731573
return util::Error{error};
15741574
}
15751575
txNew = tx_blinded; // sigh, `fillBlindDetails` may have modified txNew
1576+
// Update the change position to the new tx
1577+
change_position = txNew.vout.begin() + nChangePosInOut;
15761578

15771579
int ret = BlindTransaction(blind_details->i_amount_blinds, blind_details->i_asset_blinds, blind_details->i_assets, blind_details->i_amounts, blind_details->o_amount_blinds, blind_details->o_asset_blinds, blind_details->o_pubkeys, issuance_asset_keys, issuance_token_keys, tx_blinded);
15781580
assert(ret != -1);

0 commit comments

Comments
 (0)