Fix b58 encode bug

This commit is contained in:
Tanner Collin 2019-09-11 04:38:17 +00:00
parent 377e561764
commit 9c5ca67d53
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class common:
return False return False
def to_b58(self, text): def to_b58(self, text):
return 'l' + base58.b58encode(text).decode() return 'l' + base58.b58encode(text.encode()).decode()
def from_b58(self, text): def from_b58(self, text):
if not text.startswith('l'): if not text.startswith('l'):

View File

@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh:
long_description = fh.read() long_description = fh.read()
setuptools.setup(name='bwb', setuptools.setup(name='bwb',
version='2.0.0', version='2.0.1',
description='bwb', description='bwb',
long_description=long_description, long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',