forked from cerc-io/laconicd-deprecated
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:
co-authored by
Freddy Caceres
parent
89fdd19848
commit
b2155e709d
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user