lib: update FeePriority enum values casing

This commit is contained in:
Oscar Mira 2024-03-03 12:40:47 +01:00
parent ada39f13e8
commit 5d8abc45c3
2 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,8 @@
package im.molly.monero
enum class FeePriority(val priority: Int) {
LOW(1),
MEDIUM(2),
HIGH(3),
URGENT(4),
Low(1),
Medium(2),
High(3),
Urgent(4),
}

View File

@ -202,12 +202,12 @@ class MoneroWallet internal constructor(
while (true) {
val fees = requestFees() ?: emptyList()
val feePerByte = when (fees.size) {
1 -> mapOf(FeePriority.MEDIUM to fees[0])
1 -> mapOf(FeePriority.Medium to fees[0])
4 -> mapOf(
FeePriority.LOW to fees[0],
FeePriority.MEDIUM to fees[1],
FeePriority.HIGH to fees[2],
FeePriority.URGENT to fees[3],
FeePriority.Low to fees[0],
FeePriority.Medium to fees[1],
FeePriority.High to fees[2],
FeePriority.Urgent to fees[3],
)
else -> {