fix(rpc): decode finalized block number (#1442)

* fix(rpc): decode 'finalized' block number

* changelog

Co-authored-by: Freddy Caceres <facs95@gmail.com>
This commit is contained in:
Federico Kunze Küllmer
2022-11-10 10:00:25 +00:00
committed by GitHub
co-authored by Freddy Caceres
parent 89fdd19848
commit b2155e709d
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -72,6 +72,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes ### 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) [#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) [#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. * (rpc) [#1340](https://github.com/evmos/ethermint/pull/1340) Fix error response when `eth_estimateGas` height provided is not found.
+1 -1
View File
@@ -159,7 +159,7 @@ func (bnh *BlockNumberOrHash) decodeFromString(input string) error {
case BlockParamEarliest: case BlockParamEarliest:
bn := EthEarliestBlockNumber bn := EthEarliestBlockNumber
bnh.BlockNumber = &bn bnh.BlockNumber = &bn
case BlockParamLatest: case BlockParamLatest, BlockParamFinalized:
bn := EthLatestBlockNumber bn := EthLatestBlockNumber
bnh.BlockNumber = &bn bnh.BlockNumber = &bn
case BlockParamPending: case BlockParamPending: