Skip to content

Conversation

arepala-uml
Copy link
Contributor

  1. Added json tags to all the genesis structs.

Closes #926

@arepala-uml arepala-uml marked this pull request as ready for review March 24, 2025 02:52
@arepala-uml arepala-uml requested a review from a team as a code owner March 24, 2025 02:52
// GenesisRat is a wrapper to big.Rat that allows for unmarshaling from a bare float from JSON
type GenesisRat struct {
*big.Rat
*big.Rat `json:"string"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is "wrong" and probably not effective in any meaningful way. This field is an embedded struct, and the GenesisRat type has custom UnmarshalJSON and MarshalJSON functions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed it and tested again. Please review it once

@arepala-uml arepala-uml requested a review from agaffney March 25, 2025 20:20
@wolf31o2 wolf31o2 merged commit 81ece9d into main Mar 29, 2025
9 checks passed
@wolf31o2 wolf31o2 deleted the genesis_struct branch March 29, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add JSON labels to Genesis structs
3 participants