Skip to content

Commit

Permalink
add nil check
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Oct 21, 2024
1 parent af83a42 commit 83b0edb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proof_ipa.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ type VerkleProof struct {
}

func (vp *VerkleProof) Copy() *VerkleProof {
if vp == nil {
return nil
}
ret := &VerkleProof{
OtherStems: make([][StemSize]byte, len(vp.OtherStems)),
DepthExtensionPresent: make([]byte, len(vp.DepthExtensionPresent)),
Expand Down

0 comments on commit 83b0edb

Please sign in to comment.