From 5809ba093de008b1718ae6549f8a7a10a5ae2b73 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 15 Jul 2018 20:43:16 -0300 Subject: [PATCH] convert amount on channel_new --- lbrynet/daemon/Daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lbrynet/daemon/Daemon.py b/lbrynet/daemon/Daemon.py index facf10e40..dca9a0081 100644 --- a/lbrynet/daemon/Daemon.py +++ b/lbrynet/daemon/Daemon.py @@ -1594,6 +1594,7 @@ class Daemon(AuthJSONRPCServer): 'claim_id' : (str) claim ID of the resulting claim } """ + amount = int(amount * COIN) tx = yield self.wallet.claim_new_channel(channel_name, amount) self.wallet.save() script = tx.outputs[0].script