Return default values for transaction priority instead of throwing an exception

This commit is contained in:
OmarHatem 2022-12-15 00:42:04 +02:00
parent 761b34999e
commit 987df055a0
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ class BitcoinTransactionPriority extends TransactionPriority {
case 2:
return fast;
default:
throw Exception('Unexpected token: $raw for BitcoinTransactionPriority deserialize');
return medium;
}
}
@ -73,7 +73,7 @@ class LitecoinTransactionPriority extends BitcoinTransactionPriority {
case 2:
return fast;
default:
throw Exception('Unexpected token: $raw for LitecoinTransactionPriority deserialize');
return medium;
}
}

View file

@ -50,7 +50,7 @@ class MoneroTransactionPriority extends TransactionPriority {
case 4:
return fastest;
default:
throw Exception('Unexpected token: $raw for MoneroTransactionPriority deserialize');
return automatic;
}
}