mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-11 05:14:46 +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 String mnemonic,
|
||||||
required DerivationType derivationType,
|
required DerivationType derivationType,
|
||||||
}) {
|
}) {
|
||||||
// figure out the derivation type as best we can, otherwise set it to "unknown"
|
|
||||||
if (mnemonic.split(" ").length == 12) {
|
if (mnemonic.split(" ").length == 12) {
|
||||||
derivationType = DerivationType.bip39;
|
derivationType = DerivationType.bip39;
|
||||||
}
|
}
|
||||||
|
@ -126,9 +126,9 @@ class CWNano extends Nano {
|
||||||
required String seedKey,
|
required String seedKey,
|
||||||
required DerivationType derivationType,
|
required DerivationType derivationType,
|
||||||
}) {
|
}) {
|
||||||
// figure out the derivation type as best we can, otherwise set it to "unknown"
|
|
||||||
if (seedKey.length == 64) {
|
if (seedKey.length == 128) {
|
||||||
derivationType = DerivationType.nano;
|
derivationType = DerivationType.bip39;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NanoRestoreWalletFromKeysCredentials(
|
return NanoRestoreWalletFromKeysCredentials(
|
||||||
|
|
Loading…
Reference in a new issue