aboutsummaryrefslogtreecommitdiff
path: root/rpc
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-18 13:09:22 -0400
committerDeterminant <[email protected]>2020-09-18 13:09:22 -0400
commit3ea6a7940e40677b629270dfc7a1466bca295bd3 (patch)
tree1a7f65fcd72e77092525ab01625b8b9d365e3e40 /rpc
parentb0a75c03303fe22f31fe1e1f0fa29a1e1cd78253 (diff)
clean up the code
Diffstat (limited to 'rpc')
-rw-r--r--rpc/types.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/rpc/types.go b/rpc/types.go
index 3ee46f3..99e29fc 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -92,7 +92,6 @@ func (bn *BlockNumber) UnmarshalJSON(data []byte) error {
*bn = EarliestBlockNumber
return nil
case "latest":
- //*bn = LatestBlockNumber
*bn = AcceptedBlockNumber
return nil
case "pending":
@@ -148,7 +147,6 @@ func (bnh *BlockNumberOrHash) UnmarshalJSON(data []byte) error {
bnh.BlockNumber = &bn
return nil
case "latest":
- //*bn = LatestBlockNumber
bn := AcceptedBlockNumber
bnh.BlockNumber = &bn
return nil