mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +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 {
|
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)) {
|
if (!BitcoinTransactionPriority.all.any((element) => element.raw == savedBitcoinPriority)) {
|
||||||
await sharedPreferences.setInt(
|
await sharedPreferences.setInt(
|
||||||
PreferencesKey.bitcoinTransactionPriority, BitcoinTransactionPriority.defaultPriority.raw);
|
PreferencesKey.bitcoinTransactionPriority, BitcoinTransactionPriority.defaultPriority.raw);
|
||||||
|
|
Loading…
Reference in a new issue