forked from cerc-io/laconicd-deprecated
fix(rpc): Fix GasPrice calculation with relation to MinGasPrice (#1138)
* fix gasPrice minGasPrice comparison * update changelog Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
667940d890
commit
494d646539
@@ -216,7 +216,7 @@ func (e *PublicAPI) GasPrice() (*hexutil.Big, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
minGasPriceInt := minGasPrice.BigInt()
|
||||
minGasPriceInt := minGasPrice.TruncateInt().BigInt()
|
||||
if result.Cmp(minGasPriceInt) < 0 {
|
||||
result = minGasPriceInt
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user