From 1d63b4d33984891713bafcc1a012c266dcb7e693 Mon Sep 17 00:00:00 2001 From: James Brown Date: Sun, 27 Aug 2023 18:34:58 +1000 Subject: [PATCH] Update code --- app/src/main/java/com/alphawallet/app/entity/SuggestEIP1559.kt | 3 ++- .../alphawallet/app/entity/attestation/AttestationImport.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/alphawallet/app/entity/SuggestEIP1559.kt b/app/src/main/java/com/alphawallet/app/entity/SuggestEIP1559.kt index d0ccfa5d5b..c702489548 100644 --- a/app/src/main/java/com/alphawallet/app/entity/SuggestEIP1559.kt +++ b/app/src/main/java/com/alphawallet/app/entity/SuggestEIP1559.kt @@ -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 diff --git a/app/src/main/java/com/alphawallet/app/entity/attestation/AttestationImport.java b/app/src/main/java/com/alphawallet/app/entity/attestation/AttestationImport.java index 676e6bea9e..f060c01a12 100644 --- a/app/src/main/java/com/alphawallet/app/entity/attestation/AttestationImport.java +++ b/app/src/main/java/com/alphawallet/app/entity/attestation/AttestationImport.java @@ -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; @@ -682,7 +683,7 @@ private String getTSDataKeyTemp(long chainId, String address) address = "ethereum"; } - return address.toLowerCase() + "-" + chainId; + return address.toLowerCase(Locale.ROOT) + "-" + chainId; }