Skip to content
Snippets Groups Projects
Commit b5f5d224 authored by Holger's avatar Holger
Browse files

Fix symbols in Amount for hive

parent 81ec516a
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.22.7'
version = '0.22.8'
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.22.7'
version = '0.22.8'
......@@ -48,7 +48,11 @@ class Amount(object):
if self.precision is None:
raise Exception("Asset unknown")
self.amount = round(float(self.amount) * 10 ** self.precision)
# Workaround to allow transfers in HIVE
if self.symbol == "HBD":
self.symbol = "SBD"
elif self.symbol == "HIVE":
self.symbol = "STEEM"
self.str_repr = '{:.{}f} {}'.format((float(self.amount) / 10 ** self.precision), self.precision, self.symbol)
elif isinstance(d, list):
self.amount = d[0]
......
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.22.7'
version = '0.22.8'
"""THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.22.7'
version = '0.22.8'
......@@ -16,7 +16,7 @@ except LookupError:
ascii = codecs.lookup('ascii')
codecs.register(lambda name, enc=ascii: {True: enc}.get(name == 'mbcs'))
VERSION = '0.22.7'
VERSION = '0.22.8'
tests_require = ['mock >= 2.0.0', 'pytest', 'pytest-mock', 'parameterized']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment