Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmin1 committed May 18, 2024
1 parent f784cae commit 3bd5dba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion electrum_nmc/electrum/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ async def name_autoregister(self, identifier, value="", name_encoding='ascii', v
wallet=wallet)
# TODO: Implement queuetransaction later
await self.broadcast(firstupdate_tx, stream_id=stream_id)
return
except NamePreRegistrationNotFound:
pass

Expand Down Expand Up @@ -1920,7 +1921,6 @@ async def add_request(self, amount, identifier=None, memo='', expiration=3600, f
unsigned=True,
commitment_only=True)
commitment = name_new_result["commitment"]
memo = memo if memo else f"Pre-registration: {identifier_formatted}"
amount = satoshis(amount)
expiration = int(expiration) if expiration else None
req = wallet.make_payment_request(addr, amount, memo, expiration, commitment)
Expand Down
2 changes: 1 addition & 1 deletion electrum_nmc/electrum/gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -3469,7 +3469,7 @@ def request_new_name(self):
commitment = name_new_result["commitment"]

amount = self.extra_amount_e.get_amount() or 0
message = f"Pre-registration: {identifier_formatted}"
message = f"Pre-registration"

# Expiry set to Never
key = self.create_bitcoin_request(amount, message, 0,addr=addr, commitment=commitment)
Expand Down

0 comments on commit 3bd5dba

Please sign in to comment.