forked from cerc-io/laconicd-deprecated
rpc: fix gas price value returns constant 0 (#141)
This commit is contained in:
parent
a3ee8a4622
commit
d8926636e7
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user