Skip to content

Commit 7e8c23e

Browse files
committed
Fix multihash API usage and correct newsfragment issue number
- Fix multihash.encode() to multihash.digest().encode() in tests - Rename newsfragment from 97.feature.rst to 181.feature.rst to match issue #181 - All tests now pass with correct multihash API usage
1 parent aa2202d commit 7e8c23e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

tests/test_protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def test_ipcidr_invalid_bytes_inputs():
373373

374374
# --------CERT-HASH---------
375375

376-
VALID_MULTIHASH_BYTES = multihash.encode(b"hello world", "sha2-256")
376+
VALID_MULTIHASH_BYTES = multihash.digest(b"hello world", "sha2-256").encode()
377377
VALID_CERTHASH_STRING = multibase.encode("base64url", VALID_MULTIHASH_BYTES).decode("utf-8")
378378

379379
INVALID_BYTES = b"this is not a multihash"

0 commit comments

Comments
 (0)