problem: uses extended fees for blockchains with std fees only

This commit is contained in:
Igor Artamonov
2021-12-14 21:42:58 -05:00
parent 1c04d14ec5
commit 845cc1c2ca

View File

@@ -32,10 +32,9 @@ class EthereumLegacyFees(upstreams: EthereumMultistream, reader: EthereumReader,
private val toGrpc: Function<EthereumFee, BlockchainOuterClass.EstimateFeeResponse> = 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()
}