Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Jan 18, 2025
1 parent 1433676 commit 75ecb8d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cl/cltypes/eth1_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ func NewEth1Data() *Eth1Data {
}

func (e *Eth1Data) Copy() *Eth1Data {
copied := *e
return &copied
return &Eth1Data{
Root: e.Root,
DepositCount: e.DepositCount,
BlockHash: e.BlockHash,
}
}

func (e *Eth1Data) Equal(b *Eth1Data) bool {
Expand Down

0 comments on commit 75ecb8d

Please sign in to comment.