File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
115115func (bn BlockNumber ) MarshalText () ([]byte , error ) {
116116 switch bn {
You can’t perform that action at this time.
0 commit comments