From 3e1909bf03eaaf61f3829266f7ceb4b8c40608ca Mon Sep 17 00:00:00 2001 From: taratorio <94537774+taratorio@users.noreply.github.com> Date: Tue, 28 May 2024 16:57:50 +0100 Subject: [PATCH] polygon/heimdall: fix checkpoint json marshalling --- polygon/heimdall/checkpoint.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polygon/heimdall/checkpoint.go b/polygon/heimdall/checkpoint.go index a1d7a763c54..b26d5697866 100644 --- a/polygon/heimdall/checkpoint.go +++ b/polygon/heimdall/checkpoint.go @@ -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"` }{ @@ -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"` }{}