Skip to content

Commit

Permalink
Fix incorrect dataclass replace
Browse files Browse the repository at this point in the history
Signed-off-by: alfred richardsn <rchrdsn@protonmail.ch>
  • Loading branch information
r4rdsn committed Nov 21, 2019
1 parent 329bb1a commit 82bfa02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/handlers/escrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,9 @@ async def set_counter_send_address(
await offer.update_document(
{"$set": update, "$unset": {"pending_input_from": True}}
)
offer = replace(offer, **update)
counter = dict(offer.counter)
counter.update({"send_address": address})
offer = replace(offer, counter=counter)
keyboard = InlineKeyboardMarkup()
keyboard.add(
InlineKeyboardButton(
Expand All @@ -701,7 +703,7 @@ async def set_counter_send_address(
offer["sum_fee_up"].to_decimal(),
offer[f"sum_{offer.type}"].to_decimal(),
offer[offer.type],
offer.memo,
memo,
)
answer = _("Send {} {} to address {}", locale=escrow_user["locale"]).format(
offer.sum_fee_up, offer[offer.type], escrow_address
Expand Down

0 comments on commit 82bfa02

Please sign in to comment.