From 845cc1c2ca8e033d88d2eb3217f541f8639587aa Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Tue, 14 Dec 2021 21:42:58 -0500 Subject: [PATCH] problem: uses extended fees for blockchains with std fees only --- .../dshackle/upstream/ethereum/EthereumLegacyFees.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLegacyFees.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLegacyFees.kt index 5407496c..7884e248 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLegacyFees.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLegacyFees.kt @@ -32,10 +32,9 @@ class EthereumLegacyFees(upstreams: EthereumMultistream, reader: EthereumReader, private val toGrpc: Function = Function { BlockchainOuterClass.EstimateFeeResponse.newBuilder() - .setEthereumExtended( - BlockchainOuterClass.EthereumExtFees.newBuilder() - .setMax(it.paid.amount.toString()) - .setPriority(it.priority.amount.toString()) + .setEthereumStd( + BlockchainOuterClass.EthereumStdFees.newBuilder() + .setFee(it.paid.amount.toString()) ) .build() }