aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2020-09-17 02:04:21 -0400
committerDeterminant <[email protected]>2020-09-17 02:04:21 -0400
commit5d5c982b90375cc1ff3133566091e1fbac2b0b67 (patch)
treed4386791bbe7908e8d7fef75560e7ab49100b849
parent160a8f543b3a2e9ed38f806015e4f1f0d1f49f8d (diff)
...
-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{}