diff --git a/mmgen/amt.py b/mmgen/amt.py index 3796fe39..b4b9899d 100755 --- a/mmgen/amt.py +++ b/mmgen/amt.py @@ -138,7 +138,7 @@ class CoinAmt(Decimal, Hilite, InitErrors): # abstract class def __sub__(self, other, *args, **kwargs): if type(other) is type(self): - return type(self)(Decimal.__sub__(self, other, *args, **kwargs), from_decimal=True) + return type(self)(Decimal.__sub__(Decimal(self), Decimal(other), *args, **kwargs), from_decimal=True) raise TypeError( f'operand {other} is of incorrect type ({type(other).__name__} != {type(self).__name__})') diff --git a/mmgen/data/version b/mmgen/data/version index e0228cf1..daf7db89 100644 --- a/mmgen/data/version +++ b/mmgen/data/version @@ -1 +1 @@ -16.1.0 +16.2.dev0