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:
crypto-facs 2022-06-21 13:13:13 +02:00 committed by GitHub
parent 667940d890
commit 494d646539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes
* (evm) [tharsis#1118](https://github.com/evmos/ethermint/pull/1118) Fix `Type()` `Account` method `EmptyCodeHash` comparison
* (rpc) [tharsis#1138](https://github.com/evmos/ethermint/pull/1138) Fix GasPrice calculation with relation to `MinGasPrice`
## [v0.16.0] - 2022-06-06

View File

@ -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
}