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 -1
View File
@@ -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: