Unverified Commit fb4a97f3 authored by s7v7nislands's avatar s7v7nislands Committed by GitHub

rpc: update docstring (#26072)

Co-authored-by: 's avatarseven <seven@nodereal.io>
parent 2c1af8b1
...@@ -69,7 +69,7 @@ const ( ...@@ -69,7 +69,7 @@ const (
) )
// UnmarshalJSON parses the given JSON fragment into a BlockNumber. It supports: // UnmarshalJSON parses the given JSON fragment into a BlockNumber. It supports:
// - "latest", "earliest" or "pending" as string arguments // - "safe", "finalized", "latest", "earliest" or "pending" as string arguments
// - the block number // - the block number
// Returned errors: // Returned errors:
// - an invalid block number error when the given argument isn't a known strings // - 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 { ...@@ -110,7 +110,7 @@ func (bn *BlockNumber) UnmarshalJSON(data []byte) error {
} }
// MarshalText implements encoding.TextMarshaler. It marshals: // MarshalText implements encoding.TextMarshaler. It marshals:
// - "latest", "earliest" or "pending" as strings // - "safe", "finalized", "latest", "earliest" or "pending" as strings
// - other numbers as hex // - other numbers as hex
func (bn BlockNumber) MarshalText() ([]byte, error) { func (bn BlockNumber) MarshalText() ([]byte, error) {
switch bn { switch bn {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment