Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-kaufman committed May 19, 2021
1 parent 59ae994 commit fdb075f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cryptoadvance/specter/server_endpoints/wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,6 +1136,11 @@ def set_label(wallet_alias):
wallet = app.specter.wallet_manager.get_by_alias(wallet_alias)
address = request.form["address"]
label = request.form["label"]
while label.endswith("\n") or label.endswith("\r"):
if label.endswith("\n"):
label = label[:-2]
if label.endswith("\r"):
label = label[:-2]
wallet.setlabel(address, label)
return {"success": True}

Expand Down

0 comments on commit fdb075f

Please sign in to comment.