Skip to content

Commit

Permalink
polygon/heimdall: fix checkpoint json marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
taratorio committed May 28, 2024
1 parent 128f015 commit 3e1909b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polygon/heimdall/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (c *Checkpoint) MarshalJSON() ([]byte, error) {
Proposer libcommon.Address `json:"proposer"`
StartBlock *big.Int `json:"start_block"`
EndBlock *big.Int `json:"end_block"`
RootHash libcommon.Hash `json:"hash"`
RootHash libcommon.Hash `json:"root_hash"`
ChainID string `json:"bor_chain_id"`
Timestamp uint64 `json:"timestamp"`
}{
Expand All @@ -79,7 +79,7 @@ func (c *Checkpoint) MarshalJSON() ([]byte, error) {
func (c *Checkpoint) UnmarshalJSON(b []byte) error {
dto := struct {
WaypointFields
RootHash libcommon.Hash `json:"hash"`
RootHash libcommon.Hash `json:"root_hash"`
Id CheckpointId `json:"id"`
}{}

Expand Down

0 comments on commit 3e1909b

Please sign in to comment.