Unable to Claim Specific Reward Asset
Closed this issue · 1 comments
inertia186 commented
As a tool developer, I would like the ability to claim a specific reward asset, so that it is not all or nothing.
Claiming all reward assets at once works as expected (by passing zero arguments, as documented). But when claiming a specific asset, for example:
account = Account('inertia')
account.claim_reward_balance(reward_vests=10)
... I get the following error:
Traceback (most recent call last):
.
.
.
File "/usr/local/lib/python3.9/site-packages/beem/account.py", line 3190, in claim_reward_balance
return self.blockchain.finalizeOp(op, account, "posting", **kwargs)
UnboundLocalError: local variable 'op' referenced before assignment
It appears to me that the arguments specifying a single asset result in unreachable code.
Lines 3166 to 3190 in d9b9f96
AC
- Able to claim any combination of reward assets.
holgern commented
There was a not complete conditional structure, it should be fixed by now