1of1 is default account type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user