1
0

move is_valid from wallet class to bitcoin.py

This commit is contained in:
thomasv
2013-03-01 14:27:56 +01:00
parent f3cc234c87
commit f72c8ee5d2
9 changed files with 49 additions and 32 deletions

View File

@@ -3,6 +3,7 @@ from decimal import Decimal
_ = lambda x:x
#from i18n import _
from util import format_satoshis, set_verbosity
from bitcoin import is_valid
import tty, sys
@@ -238,7 +239,7 @@ class ElectrumGui:
self.str_description = ''
def do_send(self):
if not self.wallet.is_valid(self.str_recipient):
if not is_valid(self.str_recipient):
self.show_message(_('Invalid Bitcoin address'))
return
try: