forked from LBRYCommunity/lbry-sdk
fix balance check when claiming a name
This commit is contained in:
parent
10c72dcfd2
commit
2c8b99df76
1 changed files with 2 additions and 2 deletions
|
@ -1754,7 +1754,7 @@ class Daemon(AuthJSONRPCServer):
|
|||
raise Exception("Invalid channel name")
|
||||
if amount <= 0:
|
||||
raise Exception("Invalid amount")
|
||||
if amount > self.session.wallet.wallet_balance:
|
||||
if amount > self.session.wallet.get_balance():
|
||||
raise InsufficientFundsError()
|
||||
|
||||
result = yield self.session.wallet.claim_new_channel(channel_name, amount)
|
||||
|
@ -1842,7 +1842,7 @@ class Daemon(AuthJSONRPCServer):
|
|||
if bid <= 0.0:
|
||||
raise Exception("Invalid bid")
|
||||
|
||||
if bid < self.session.wallet.wallet_balance:
|
||||
if bid < self.session.wallet.get_balance():
|
||||
raise InsufficientFundsError()
|
||||
|
||||
metadata = metadata or {}
|
||||
|
|
Loading…
Reference in a new issue