Skip to content
Snippets Groups Projects
Commit a4bb1b86 authored by pharesim's avatar pharesim
Browse files

fixes

parent 88a5af2b
No related branches found
No related tags found
No related merge requests found
Pipeline #11878 failed
...@@ -68,7 +68,7 @@ author = 'pharesim@protonmail.com' ...@@ -68,7 +68,7 @@ author = 'pharesim@protonmail.com'
# The short X.Y version. # The short X.Y version.
version = '0.9' version = '0.9'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.9.16' release = '0.9.18'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from .hive import Hive from .hive import Hive
__version__ = '0.9.16' __version__ = '0.9.18'
...@@ -916,11 +916,16 @@ class Commit(object): ...@@ -916,11 +916,16 @@ class Commit(object):
reward_hbd = a['reward_sbd_balance'] reward_hbd = a['reward_sbd_balance']
reward_vests = a['reward_vesting_balance'] reward_vests = a['reward_vesting_balance']
if reward_hive[-4:] == 'HIVE':
reward_hive = reward_hive[:-4]+'STEEM'
if reward_hbd[-3:] == 'HBD':
reward_hbd = reward_hbd[:-3]+'SBD'
op = operations.ClaimRewardBalance( op = operations.ClaimRewardBalance(
**{ **{
"account": account, "account": account,
"reward_hive": reward_hive, "reward_steem": reward_hive,
"reward_hbd": reward_hbd, "reward_sbd": reward_hbd,
"reward_vests": reward_vests, "reward_vests": reward_vests,
}) })
return self.finalizeOp(op, account, "posting") return self.finalizeOp(op, account, "posting")
......
...@@ -272,7 +272,11 @@ class HttpClient(object): ...@@ -272,7 +272,11 @@ class HttpClient(object):
else: else:
error = 'unspecified error' error = 'unspecified error'
else: else:
error = result['error']['data']['name'] from pprint import pprint
if isinstance(result['error']['data'],list):
error = result['error']['data']['name']
else:
error = result['error']['data']
if legacy: if legacy:
detail = ":".join(detail.split("\n")[0:2]) detail = ":".join(detail.split("\n")[0:2])
......
...@@ -565,8 +565,8 @@ class ClaimRewardBalance(GrapheneObject): ...@@ -565,8 +565,8 @@ class ClaimRewardBalance(GrapheneObject):
super(ClaimRewardBalance, self).__init__( super(ClaimRewardBalance, self).__init__(
OrderedDict([ OrderedDict([
('account', String(kwargs["account"])), ('account', String(kwargs["account"])),
('reward_hive', Amount(kwargs["reward_hive"])), ('reward_steem', Amount(kwargs["reward_steem"])),
('reward_hbd', Amount(kwargs["reward_hbd"])), ('reward_sbd', Amount(kwargs["reward_sbd"])),
('reward_vests', Amount(kwargs["reward_vests"])), ('reward_vests', Amount(kwargs["reward_vests"])),
])) ]))
......
...@@ -14,7 +14,7 @@ from setuptools.command.test import test as TestCommand ...@@ -14,7 +14,7 @@ from setuptools.command.test import test as TestCommand
# Package meta-data. # Package meta-data.
NAME = 'hivepy' NAME = 'hivepy'
VERSION = '0.9.16' VERSION = '0.9.18'
DESCRIPTION = 'A python hive library.' DESCRIPTION = 'A python hive library.'
URL = 'https://github.com/pharesim/hive-python' URL = 'https://github.com/pharesim/hive-python'
EMAIL = 'pharesim@protonmail.com' EMAIL = 'pharesim@protonmail.com'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment