fix is_valid_address

This commit is contained in:
Lex Berezhny 2019-03-24 21:53:52 -04:00
parent 9ff41f748e
commit 33ac9eea13

View file

@ -156,7 +156,7 @@ class BaseLedger(metaclass=LedgerRegistry):
@classmethod
def is_valid_address(cls, address):
decoded = Base58.decode(address)
return decoded[0] == cls.pubkey_address_prefix
return decoded[0] == cls.pubkey_address_prefix[0]
@classmethod
def public_key_to_address(cls, public_key):