From ff17551e32bf3cb01e961125230037e1d85c3eb7 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 14 Dec 2023 14:52:18 -0600 Subject: [PATCH] adding codex merkle and coders tests --- codex/merkletree/codexmerkletree/codexmerkletree.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codex/merkletree/codexmerkletree/codexmerkletree.nim b/codex/merkletree/codexmerkletree/codexmerkletree.nim index f51aec84..2e924692 100644 --- a/codex/merkletree/codexmerkletree/codexmerkletree.nim +++ b/codex/merkletree/codexmerkletree/codexmerkletree.nim @@ -119,10 +119,10 @@ proc rootCid*( if self.root.len == 0: return failure "Empty root" - Cid.init( - version, - dataCodec, - ? MultiHash.init(self.mcodec, self.root).mapFailure).mapFailure + let + mhash = ? MultiHash.init(self.mcodec, self.root).mapFailure + + Cid.init(version, DatasetRootCodec, mhash).mapFailure func getLeafCid*( self: CodexMerkleTree,