1
0

1of1 is default account type

This commit is contained in:
ThomasV
2014-02-03 10:01:21 +01:00
parent 70bace9b1e
commit 4693727659
2 changed files with 15 additions and 11 deletions

View File

@@ -28,6 +28,9 @@ class WalletFactory(object):
@classmethod
def from_seed(self, seed, storage):
import mnemonic
if not seed:
return
words = seed.strip().split()
try:
mnemonic.mn_decode(words)
@@ -50,4 +53,5 @@ class WalletFactory(object):
w = Wallet(storage)
w.init_seed(seed)
return w