Fix missing Errorf parameter in merkletree

This commit is contained in:
Daniel Peukert 2023-02-09 12:04:33 +01:00 committed by GitHub
parent ce81f9001f
commit 6ec0ab5b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func (h *Hash) UnmarshalJSON(b []byte) error {
return err
}
if len(hashBytes) != HashLen {
return fmt.Errorf("Merkle Tree hash has wrong length (should be %d bytes long, not %d)", HashLen)
return fmt.Errorf("Merkle Tree hash has wrong length (should be %d bytes long, not %d)", HashLen, len(hashBytes))
}
copy(h[:], hashBytes)
return nil