From 7f8825343d6dbf8b9e2c3c872f8a6400277a4b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20=C5=A0?= Date: Mon, 30 Sep 2019 20:14:43 +0200 Subject: [PATCH] Fix docs --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96b2968..16e167b 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,9 @@ It takes a supported codec as a string and a value as a string and returns the c ```py import content_hash +codec = 'swarm-ns' value = 'd1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162' -chash = content_hash.encode(chash) +chash = content_hash.encode(codec, value) print(chash) # e40101701b20d1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162 ```