Skip to content

Commit

Permalink
Fix raw attestation json tag
Browse files Browse the repository at this point in the history
  • Loading branch information
KaloyanTanev committed Jan 21, 2025
1 parent 74b40c5 commit 5073f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/signeddata.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ type versionedRawBlockJSON struct {
// versionedRawAttestationJSON is a custom VersionedAttestation serialiser.
type versionedRawAttestationJSON struct {
Version eth2util.DataVersion `json:"version"`
Attestation json.RawMessage `json:"block"`
Attestation json.RawMessage `json:"attestation"`
}

// NewVersionedAttestation is a convenience function that returns a new wrapped attestation.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 5,
"block": {
"attestation": {
"aggregation_bits": "0x0272908d45b01601",
"data": {
"slot": "3748136313440833973",
Expand Down

0 comments on commit 5073f45

Please sign in to comment.