Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell committed Aug 27, 2023
1 parent 33da271 commit 1d63b4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ internal fun suggestPriorityFee(firstBlock: Long, feeHistory: FeeHistory, gasSer
val blockCount = maxBlockCount(gasUsedRatio, ptr, needBlocks)
if (blockCount > 0) {
// feeHistory API call with reward percentile specified is expensive and therefore is only requested for a few non-full recent blocks.
val feeHistoryFetch = gasService.getChainFeeHistory(blockCount, Numeric.prependHexPrefix((firstBlock + ptr).toString(16)),
val feeHistoryFetch = gasService.getChainFeeHistory(blockCount,
Numeric.prependHexPrefix((firstBlock + ptr).toString(16)),
rewardPercentile.toString()).blockingGet();

val rewardSize = feeHistoryFetch?.reward?.size ?: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;

import io.reactivex.Single;
Expand Down Expand Up @@ -682,7 +683,7 @@ private String getTSDataKeyTemp(long chainId, String address)
address = "ethereum";
}

return address.toLowerCase() + "-" + chainId;
return address.toLowerCase(Locale.ROOT) + "-" + chainId;
}


Expand Down

0 comments on commit 1d63b4d

Please sign in to comment.