aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rpc/types.go4
1 files changed, 4 insertions, 0 deletions
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{}