diff --git a/bitcoinrpc/authproxy.py b/bitcoinrpc/authproxy.py index 088c86b..36e9dd9 100644 --- a/bitcoinrpc/authproxy.py +++ b/bitcoinrpc/authproxy.py @@ -74,7 +74,7 @@ def __repr__(self): def EncodeDecimal(o): if isinstance(o, decimal.Decimal): - return round(o, 8) + return float(round(o, 8)) raise TypeError(repr(o) + " is not JSON serializable") class AuthServiceProxy(object):