Skip to content

Commit d185052

Browse files
committed
feat: add support to double XPRV
We are moving the business logic related to the XPRV length to the witnet.dart library (https://github.com/witnet/witnet.dart). So, in this PR, we only remove the XPRV length validation while importing a wallet. The logic to handle a double XPRV is implemented here: witnet/witnet.dart#31
1 parent 4d2e8cd commit d185052

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/screens/create_wallet/bloc/api_create_wallet.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ class ApiCreateWallet {
5050
try {
5151
int xprvLength = xprvString.length;
5252
String? xprvDecripted;
53-
if (xprvLength == ENCRYPTED_XPRV_LENGTH &&
54-
_xprvType == CreateWalletType.encryptedXprv) {
53+
if (_xprvType == CreateWalletType.encryptedXprv) {
5554
xprvDecripted = await apiCrypto.decryptXprv(
5655
xprv: xprvString, password: password?.value ?? '');
5756
} else if (xprvLength == XPRV_LENGTH &&

0 commit comments

Comments
 (0)