diff --git a/examples/data/config/CryptoWalletRPC.json b/examples/data/config/CryptoWalletRPC.json index 9455ece..498f779 100644 --- a/examples/data/config/CryptoWalletRPC.json +++ b/examples/data/config/CryptoWalletRPC.json @@ -7,7 +7,7 @@ "password": "pass", "port": 12893, "precision": 8, - "reserve": 0.01, + "reserve": "0.01", "link": "https://litecoin.org/", "addrfmt": "^[LM3][a-km-zA-HJ-NP-Z1-9]{26,33}$" }, @@ -18,7 +18,7 @@ "password": "pass", "port": 48191, "precision": 8, - "reserve": 0.001, + "reserve": "0.001", "link": "http://bitcoin.org/", "addrfmt": "^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$" } diff --git a/pyircbot/modules/CryptoWalletRPC.py b/pyircbot/modules/CryptoWalletRPC.py index 7813e19..bc9ac9e 100755 --- a/pyircbot/modules/CryptoWalletRPC.py +++ b/pyircbot/modules/CryptoWalletRPC.py @@ -33,7 +33,7 @@ class CryptoWalletRPC(ModuleBase): coin["username"], coin["password"], coin["precision"], - coin["reserve"], + Decimal(coin["reserve"]), re.compile(coin["addrfmt"])) def getRpc(self, currencyAbbr):