Permalink
Browse files

Fixed error in getreceivedbyaddress and getreceivedbyaccount.

  • Loading branch information...
1 parent 9ebcd0d commit 7fc7e52eff3894ed61c3813ef2f489e7ac969aa9 @ryepdx committed Jun 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 apps/bitcoind/views.py
View
@@ -271,7 +271,7 @@ def getreceivedbyaddress(request, bitcoinaddress, minconf=1):
- *minconf* -- Number of confirmations to require, defaults to 1.
"""
try:
- return conn.getreceivedbyaddress(bitcoinaddress, minconf)
+ return str(conn.getreceivedbyaddress(bitcoinaddress, minconf))
except JSONRPCException, e:
raise _wrap_exception(e.error)
@@ -290,7 +290,7 @@ def getreceivedbyaccount(request, label, minconf=1):
"""
try:
account = util.getaccount(request.user, label)
- return conn.getreceivedbyaccount(account, minconf)
+ return str(conn.getreceivedbyaccount(account, minconf))
except JSONRPCException, e:
raise _wrap_exception(e.error)

0 comments on commit 7fc7e52

Please sign in to comment.