diff --git a/bitcoinrpc/authproxy.py b/bitcoinrpc/authproxy.py index abebe4b..1842e2f 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 float(round(o, 8)) + return round(float(o), 8) raise TypeError(repr(o) + " is not JSON serializable") class AuthServiceProxy(object):