Skip to content

Commit

Permalink
Namecoin: Fix name_list usage in name_update
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 17, 2020
1 parent c80ec7e commit f793d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electrum_nmc/electrum/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ async def name_update(self, identifier, value=None, destination=None, amount=0.0
# value.
renew = False
if value is None:
list_results = await self.name_list(identifier)[0]
list_results = await self.name_list(identifier)
list_results = list_results[0]

# This check is in place to prevent an attack where an ElectrumX
# server supplies an unconfirmed name_update transaction with a
Expand Down

0 comments on commit f793d10

Please sign in to comment.