Skip to content

Commit

Permalink
Fix removal of err from encoding which doesnæt make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Jun 3, 2024
1 parent 18cefe2 commit eda3046
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions did/doc/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ func (d *Document) PayloadHash() ([]byte, error) {

// Hash the payload
hashed := blake3.Sum256(p)
multicodecHashed, err := utils.MulticodecEncode(multicodec.Blake3, hashed[:])
if err != nil {
return nil, ErrPayloadMultiencode
}
multicodecHashed := utils.MulticodecEncode(multicodec.Blake3, hashed[:])

return multicodecHashed, nil
}

0 comments on commit eda3046

Please sign in to comment.