From 290f90c5a3d4359a0437a18c8d85f778b7c087a0 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Tue, 29 Mar 2022 17:25:22 -0600 Subject: [PATCH] use `len` prop on manifest --- dagger/manifest/coders.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagger/manifest/coders.nim b/dagger/manifest/coders.nim index 045dbdd5..1189f677 100644 --- a/dagger/manifest/coders.nim +++ b/dagger/manifest/coders.nim @@ -64,7 +64,7 @@ func encode*(_: DagPBCoder, manifest: Manifest): ?!seq[byte] = var header = initProtoBuffer() header.write(1, cid.data.buffer) header.write(2, manifest.blockSize.uint32) - header.write(3, manifest.blocks.len.uint32) + header.write(3, manifest.len.uint32) pbNode.write(1, header.buffer) # set the rootHash Cid as the data field pbNode.finish()