Skip to content

Commit

Permalink
Merge pull request #267 from horizontalsystems/feerate-revert-faulty-…
Browse files Browse the repository at this point in the history
…code

Revert estimate fee rate faulty code
  • Loading branch information
tmedetbekov authored Apr 1, 2019
2 parents e01aebf + 9d1b497 commit 71b3278
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ApiFeeRate(networkType: BitcoinKit.NetworkType) {

val btcRates = json.get("rates").asObject().get(coinCode).asObject()
val rate = FeeRate().apply {
lowPriority = btcRates["low_priority"].asString().toDouble()
mediumPriority = btcRates["medium_priority"].asString().toDouble()
highPriority = btcRates["high_priority"].asString().toDouble()
lowPriority = btcRates["low_priority"].asDouble()
mediumPriority = btcRates["medium_priority"].asDouble()
highPriority = btcRates["high_priority"].asDouble()
date = json["time"].asLong()
dateStr = json["time_str"].asString()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class ApiFeeRateTest {
}

private val coinJsonObject = JsonObject().apply {
this.add("low_priority", feeRate.lowPriority.toString())
this.add("medium_priority", feeRate.mediumPriority.toString())
this.add("high_priority", feeRate.highPriority.toString())
this.add("low_priority", feeRate.lowPriority.toInt())
this.add("medium_priority", feeRate.mediumPriority.toInt())
this.add("high_priority", feeRate.highPriority.toInt())
}

private val btcJsonObject = JsonObject().add("BTC", coinJsonObject)
Expand Down

0 comments on commit 71b3278

Please sign in to comment.