Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jul 31, 2024
1 parent 3af4e43 commit a354a31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ var _ HashWalker = (*Wrapper)(nil)
// the default HasherPool
func ProofTree(v HashRootProof) (*Node, error) {
w := &Wrapper{}
return w.Node(), v.HashTreeRootWith(w)
if err := v.HashTreeRootWith(w); err != nil {
return nil, err
}
return w.Node(), nil
}

type Wrapper struct {
Expand Down

0 comments on commit a354a31

Please sign in to comment.