From 987a9956ec9f91daf2e1b7d070ca4d609fa4a3a7 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 12 Jan 2022 18:30:18 -0600 Subject: [PATCH] Attach decode to `Manifest` --- dagger/manifest.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dagger/manifest.nim b/dagger/manifest.nim index 6fce9bcb..8aa4b4c1 100644 --- a/dagger/manifest.nim +++ b/dagger/manifest.nim @@ -131,7 +131,7 @@ proc encode*(b: var BlocksManifest): ?!seq[byte] = return pbNode.buffer.success -proc decode*(_: type BlocksManifest, data: openArray[byte]): ?!Manifest = +proc decode*(_: type Manifest, data: openArray[byte]): ?!Manifest = ## Decode a manifest from a data blob ## @@ -184,7 +184,7 @@ proc init*( ## let - manifest = ? BlocksManifest.decode(data) + manifest = ? Manifest.decode(data) cid = !manifest.cid mhash = ? cid.mhash.mapFailure