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
|
package im.molly.monero
|
||||||
|
|
||||||
enum class FeePriority(val priority: Int) {
|
enum class FeePriority(val priority: Int) {
|
||||||
LOW(1),
|
Low(1),
|
||||||
MEDIUM(2),
|
Medium(2),
|
||||||
HIGH(3),
|
High(3),
|
||||||
URGENT(4),
|
Urgent(4),
|
||||||
}
|
}
|
||||||
|
@ -202,12 +202,12 @@ class MoneroWallet internal constructor(
|
|||||||
while (true) {
|
while (true) {
|
||||||
val fees = requestFees() ?: emptyList()
|
val fees = requestFees() ?: emptyList()
|
||||||
val feePerByte = when (fees.size) {
|
val feePerByte = when (fees.size) {
|
||||||
1 -> mapOf(FeePriority.MEDIUM to fees[0])
|
1 -> mapOf(FeePriority.Medium to fees[0])
|
||||||
4 -> mapOf(
|
4 -> mapOf(
|
||||||
FeePriority.LOW to fees[0],
|
FeePriority.Low to fees[0],
|
||||||
FeePriority.MEDIUM to fees[1],
|
FeePriority.Medium to fees[1],
|
||||||
FeePriority.HIGH to fees[2],
|
FeePriority.High to fees[2],
|
||||||
FeePriority.URGENT to fees[3],
|
FeePriority.Urgent to fees[3],
|
||||||
)
|
)
|
||||||
|
|
||||||
else -> {
|
else -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user