From 757e31ac4283ccc728333d198424df5daee76706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Kunze=20K=C3=BCllmer?= <31522760+fedekunze@users.noreply.github.com> Date: Wed, 9 Nov 2022 12:45:42 +0100 Subject: [PATCH 1/2] fix(rpc): decode 'finalized' block number --- rpc/types/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/types/block.go b/rpc/types/block.go index 4296ed6804..8918e77dff 100644 --- a/rpc/types/block.go +++ b/rpc/types/block.go @@ -159,7 +159,7 @@ func (bnh *BlockNumberOrHash) decodeFromString(input string) error { case BlockParamEarliest: bn := EthEarliestBlockNumber bnh.BlockNumber = &bn - case BlockParamLatest: + case BlockParamLatest, BlockParamFinalized: bn := EthLatestBlockNumber bnh.BlockNumber = &bn case BlockParamPending: From 7121ab49a2729c598765f74de2c51f8ae5d7cf1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Kunze=20K=C3=BCllmer?= <31522760+fedekunze@users.noreply.github.com> Date: Thu, 10 Nov 2022 10:50:46 +0100 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dec0b54f60..7e4c29217a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### Bug Fixes +* (rpc) [#1442](https://github.com/evmos/ethermint/pull/1442) Fix decoding of `finalized` block number. * (rpc) [#1179](https://github.com/evmos/ethermint/pull/1179) Fix gas used in traceTransaction response. * (rpc) [#1284](https://github.com/evmos/ethermint/pull/1284) Fix internal trace response upon incomplete `eth_sendTransaction` call. * (rpc) [#1340](https://github.com/evmos/ethermint/pull/1340) Fix error response when `eth_estimateGas` height provided is not found.