mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
pyln: fix msat float multiplication
This commit is contained in:
committed by
Christian Decker
parent
2678cfb364
commit
565dc95a8e
@@ -177,7 +177,7 @@ class Millisatoshi:
|
||||
return Millisatoshi(int(self) - int(other))
|
||||
|
||||
def __mul__(self, other: int) -> 'Millisatoshi':
|
||||
return Millisatoshi(self.millisatoshis * other)
|
||||
return Millisatoshi(int(self.millisatoshis * other))
|
||||
|
||||
def __truediv__(self, other: Union[int, float]) -> 'Millisatoshi':
|
||||
return Millisatoshi(int(self.millisatoshis / other))
|
||||
|
||||
Reference in New Issue
Block a user