mirror of
https://github.com/mollyim/monero-wallet-sdk.git
synced 2024-10-01 03:45:36 -04:00
lib: update FeePriority enum values casing
This commit is contained in:
parent
ada39f13e8
commit
5d8abc45c3
@ -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),
|
||||
}
|
||||
|
@ -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 -> {
|
||||
|
Loading…
Reference in New Issue
Block a user