From 5e9aff9611e90e815e1b0cef80cab7974d2d3fc6 Mon Sep 17 00:00:00 2001 From: Thomas Nguy Date: Mon, 13 Dec 2021 17:08:09 +0900 Subject: [PATCH 1/2] nobasefee param value should be consistent with block height --- rpc/ethereum/backend/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/ethereum/backend/backend.go b/rpc/ethereum/backend/backend.go index 1e18ff3542..828f976746 100644 --- a/rpc/ethereum/backend/backend.go +++ b/rpc/ethereum/backend/backend.go @@ -941,7 +941,7 @@ func (e *EVMBackend) BaseFee(height int64) (*big.Int, error) { } // Checks the feemarket param NoBaseFee settings, return 0 if it is enabled. - resParams, err := e.queryClient.FeeMarket.Params(e.ctx, &feemarkettypes.QueryParamsRequest{}) + resParams, err := e.queryClient.FeeMarket.Params(types.ContextWithHeight(height), &feemarkettypes.QueryParamsRequest{}) if err != nil { return nil, err } From 28c65aaedbe8d1c49aca13055ab7258823a3c50f Mon Sep 17 00:00:00 2001 From: Thomas Nguy Date: Mon, 13 Dec 2021 17:15:07 +0900 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b39a9c52e3..ee85cef469 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## Unreleased +### Bug Fixes + +* (rpc) [tharsis#831](https://github.com/tharsis/ethermint/pull/831) Fix BaseFee value when height is specified. + ## [v0.9.0] - 2021-12-01 ### State Machine Breaking