mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
minor fixes
This commit is contained in:
parent
e7fe64ee1f
commit
978be2f575
1 changed files with 4 additions and 4 deletions
|
@ -106,7 +106,7 @@ class CWNano extends Nano {
|
|||
required String mnemonic,
|
||||
required DerivationType derivationType,
|
||||
}) {
|
||||
// figure out the derivation type as best we can, otherwise set it to "unknown"
|
||||
|
||||
if (mnemonic.split(" ").length == 12) {
|
||||
derivationType = DerivationType.bip39;
|
||||
}
|
||||
|
@ -126,9 +126,9 @@ class CWNano extends Nano {
|
|||
required String seedKey,
|
||||
required DerivationType derivationType,
|
||||
}) {
|
||||
// figure out the derivation type as best we can, otherwise set it to "unknown"
|
||||
if (seedKey.length == 64) {
|
||||
derivationType = DerivationType.nano;
|
||||
|
||||
if (seedKey.length == 128) {
|
||||
derivationType = DerivationType.bip39;
|
||||
}
|
||||
|
||||
return NanoRestoreWalletFromKeysCredentials(
|
||||
|
|
Loading…
Reference in a new issue