mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Return default values for transaction priority instead of throwing an exception
This commit is contained in:
parent
761b34999e
commit
987df055a0
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ class BitcoinTransactionPriority extends TransactionPriority {
|
||||||
case 2:
|
case 2:
|
||||||
return fast;
|
return fast;
|
||||||
default:
|
default:
|
||||||
throw Exception('Unexpected token: $raw for BitcoinTransactionPriority deserialize');
|
return medium;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ class LitecoinTransactionPriority extends BitcoinTransactionPriority {
|
||||||
case 2:
|
case 2:
|
||||||
return fast;
|
return fast;
|
||||||
default:
|
default:
|
||||||
throw Exception('Unexpected token: $raw for LitecoinTransactionPriority deserialize');
|
return medium;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ class MoneroTransactionPriority extends TransactionPriority {
|
||||||
case 4:
|
case 4:
|
||||||
return fastest;
|
return fastest;
|
||||||
default:
|
default:
|
||||||
throw Exception('Unexpected token: $raw for MoneroTransactionPriority deserialize');
|
return automatic;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue