From d8926636e7645e1a95f8bab409fd1118a58bfd1d Mon Sep 17 00:00:00 2001 From: Thomas Nguy <81727899+thomas-nguy@users.noreply.github.com> Date: Mon, 21 Jun 2021 17:03:54 +0900 Subject: [PATCH] rpc: fix gas price value returns constant 0 (#141) --- ethereum/rpc/eth_api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethereum/rpc/eth_api.go b/ethereum/rpc/eth_api.go index 5d707286..ab3ed39b 100644 --- a/ethereum/rpc/eth_api.go +++ b/ethereum/rpc/eth_api.go @@ -160,7 +160,8 @@ func (e *PublicEthAPI) Hashrate() hexutil.Uint64 { // GasPrice returns the current gas price based on Ethermint's gas price oracle. func (e *PublicEthAPI) GasPrice() *hexutil.Big { e.logger.Debugln("eth_gasPrice") - out := big.NewInt(0) + // TODO: use minimum value defined in config instead of default or implement oracle + out := big.NewInt(ethermint.DefaultGasPrice) return (*hexutil.Big)(out) }