diff --git a/bwb/common.py b/bwb/common.py index b83b0f7..2f57c21 100644 --- a/bwb/common.py +++ b/bwb/common.py @@ -71,7 +71,7 @@ class common: return False def to_b58(self, text): - return 'l' + base58.b58encode(text).decode() + return 'l' + base58.b58encode(text.encode()).decode() def from_b58(self, text): if not text.startswith('l'): diff --git a/setup.py b/setup.py index a2426a2..2b1e3ae 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup(name='bwb', - version='2.0.0', + version='2.0.1', description='bwb', long_description=long_description, long_description_content_type='text/markdown',