Enforcing Base58 check on Litecoin and Dash addresses

pull/405/head
Miroslav Stampar 2019-09-25 09:37:33 +02:00
parent 9051c4081b
commit 69e793f16a
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ def check_base58_address(bc):
return False return False
def verify_cryptocurrency_address(cryptocurrency_type, cryptocurrency_address): def verify_cryptocurrency_address(cryptocurrency_type, cryptocurrency_address):
if cryptocurrency_type == 'bitcoin': if cryptocurrency_type in ('bitcoin', 'litecoin', 'dash'):
return check_base58_address(cryptocurrency_address) return check_base58_address(cryptocurrency_address)
else: else:
return True return True