Skip to content

Commit

Permalink
Merge pull request #20 from pietjepuk2/pietjepuk2-fix-json-deposit-sn…
Browse files Browse the repository at this point in the history
…apshot

fix: Use string representation of ints in DepositSnapshotJSON
  • Loading branch information
samcm authored Aug 23, 2023
2 parents bd0e9e1 + 96ac38a commit 8fc9b74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/beacon/api/types/deposit_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ type DepositSnapshot struct {
type DepositSnapshotJSON struct {
Finalized []string `json:"finalized"`
DepositRoot string `json:"deposit_root"`
DepositCount uint64 `json:"deposit_count"`
DepositCount uint64 `json:"deposit_count,string"`
ExecutionBlockHash string `json:"execution_block_hash"`
ExecutionBlockHeight uint64 `json:"execution_block_height"`
ExecutionBlockHeight uint64 `json:"execution_block_height,string"`
}

func (d *DepositSnapshot) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit 8fc9b74

Please sign in to comment.