forked from LBRYCommunity/lbry-sdk
fix is_valid_address
This commit is contained in:
parent
9ff41f748e
commit
33ac9eea13
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue