Browse Source

Fix bug where addresses were incorrectly converted to lowercase

dev-v1.0.4
Ken Carpenter 3 years ago
parent
commit
7b54ff9f23
  1. 5
      ports/stm32/boards/Passport/modules/actions.py
  2. 5
      ports/stm32/boards/Passport/modules/new_wallet.py

5
ports/stm32/boards/Passport/modules/actions.py

@ -270,11 +270,8 @@ class VerifyAddressUX(UXStateMachine):
if address == None:
return
# Ensure lowercase
address = address.lower()
# Strip prefix if present
if address.startswith('bitcoin:'):
if address[0:8].lower() == 'bitcoin:':
address = address[8:]
if not is_valid_address(address):

5
ports/stm32/boards/Passport/modules/new_wallet.py

@ -698,11 +698,8 @@ Generate a new receive address in {} and scan the QR code on the next page.'''.f
self.goto_prev()
continue
# Ensure lowercase
address = address.lower()
# Strip prefix if present
if address.startswith('bitcoin:'):
if address[0:8].lower() == 'bitcoin:':
address = address[8:]
if not is_valid_address(address):

Loading…
Cancel
Save