mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
Reformat the whole codebase with 100 line width (#3403)
This commit is contained in:
@@ -4,8 +4,7 @@ import 'package:cake_wallet/entities/secret_store_key.dart';
|
||||
import 'package:cake_wallet/store/settings_store.dart';
|
||||
|
||||
class SetupPinCodeViewModel {
|
||||
SetupPinCodeViewModel(this._authService, this._settingsStore,
|
||||
{this.isDuressPin = false})
|
||||
SetupPinCodeViewModel(this._authService, this._settingsStore, {this.isDuressPin = false})
|
||||
: _pinCodeLength = _settingsStore.pinCodeLength;
|
||||
|
||||
String originalPinCode = '';
|
||||
@@ -46,7 +45,6 @@ class SetupPinCodeViewModel {
|
||||
originalPinCode = pin;
|
||||
|
||||
if (isDuressPin && pin.length == pinCodeLength) {
|
||||
|
||||
final regularKey = generateStoreKeyFor(key: SecretStoreKey.pinCodePassword);
|
||||
final encodedRegularPin = await _authService.secureStorage.read(key: regularKey);
|
||||
|
||||
@@ -84,7 +82,6 @@ class SetupPinCodeViewModel {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
await _authService.setPassword(repeatedPinCode);
|
||||
_settingsStore.pinCodeLength = pinCodeLength;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user