From 5d5c982b90375cc1ff3133566091e1fbac2b0b67 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 17 Sep 2020 02:04:21 -0400 Subject: ... --- rpc/types.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rpc') diff --git a/rpc/types.go b/rpc/types.go index 6575203..e46532c 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -155,6 +155,10 @@ func (bnh *BlockNumberOrHash) UnmarshalJSON(data []byte) error { bn := PendingBlockNumber bnh.BlockNumber = &bn return nil + case "accepted": + bn := AcceptedBlockNumber + bnh.BlockNumber = &bn + return nil default: if len(input) == 66 { hash := common.Hash{} -- cgit v1.2.3 From 3b7ebac681f551a9f9931e9d68de402d4cff8c0d Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 17 Sep 2020 02:07:45 -0400 Subject: ... --- rpc/types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rpc') diff --git a/rpc/types.go b/rpc/types.go index e46532c..3ee46f3 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -148,7 +148,8 @@ func (bnh *BlockNumberOrHash) UnmarshalJSON(data []byte) error { bnh.BlockNumber = &bn return nil case "latest": - bn := LatestBlockNumber + //*bn = LatestBlockNumber + bn := AcceptedBlockNumber bnh.BlockNumber = &bn return nil case "pending": -- cgit v1.2.3