Skip to content

Commit

Permalink
Update types.go
Browse files Browse the repository at this point in the history
Marshal directly for type.
  • Loading branch information
mcdee authored May 6, 2024
1 parent 2fc06f1 commit ed02a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/phase0/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (e *Epoch) UnmarshalJSON(input []byte) error {
}

// MarshalJSON implements json.Marshaler.
func (e *Epoch) MarshalJSON() ([]byte, error) {
func (e Epoch) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf(`"%d"`, e)), nil
}

Expand Down

0 comments on commit ed02a7f

Please sign in to comment.