mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Validate bitcoin's saved transaction priority [skip ci]
This commit is contained in:
parent
710de57847
commit
eb0ebbac41
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ Future defaultSettingsMigration(
|
|||
}
|
||||
|
||||
Future<void> validateBitcoinSavedTransactionPriority(SharedPreferences sharedPreferences) async {
|
||||
int? savedBitcoinPriority = sharedPreferences.getInt(PreferencesKey.bitcoinTransactionPriority);
|
||||
final int? savedBitcoinPriority =
|
||||
sharedPreferences.getInt(PreferencesKey.bitcoinTransactionPriority);
|
||||
if (!BitcoinTransactionPriority.all.any((element) => element.raw == savedBitcoinPriority)) {
|
||||
await sharedPreferences.setInt(
|
||||
PreferencesKey.bitcoinTransactionPriority, BitcoinTransactionPriority.defaultPriority.raw);
|
||||
|
|
Loading…
Reference in a new issue