Skip to content

Commit e4f2764

Browse files
s7v7nislandsseven
authored andcommitted
rpc: update docstring (ethereum#26072)
Co-authored-by: seven <[email protected]>
1 parent 7442b4b commit e4f2764

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rpc/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const (
6969
)
7070

7171
// UnmarshalJSON parses the given JSON fragment into a BlockNumber. It supports:
72-
// - "latest", "earliest" or "pending" as string arguments
72+
// - "safe", "finalized", "latest", "earliest" or "pending" as string arguments
7373
// - the block number
7474
// Returned errors:
7575
// - an invalid block number error when the given argument isn't a known strings
@@ -110,7 +110,7 @@ func (bn *BlockNumber) UnmarshalJSON(data []byte) error {
110110
}
111111

112112
// MarshalText implements encoding.TextMarshaler. It marshals:
113-
// - "latest", "earliest" or "pending" as strings
113+
// - "safe", "finalized", "latest", "earliest" or "pending" as strings
114114
// - other numbers as hex
115115
func (bn BlockNumber) MarshalText() ([]byte, error) {
116116
switch bn {

0 commit comments

Comments
 (0)