Skip to content

Commit

Permalink
Fixed wrong fixed-length assumption of SS58 encoded addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan Zijderveld committed Mar 7, 2020
1 parent bde937e commit 650723e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalecodec/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def process_encode(self, value):

if type(value) == str and value[0:2] != '0x':
# Assume SS58 encoding address
if len(value) == 47:
if len(value) >= 46:
from scalecodec.utils.ss58 import ss58_decode
value = '0x{}'.format(ss58_decode(value))
else:
Expand Down

0 comments on commit 650723e

Please sign in to comment.