minor fixes

This commit is contained in:
fosse 2023-10-18 13:45:48 -04:00
parent e7fe64ee1f
commit 978be2f575

View file

@ -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(