make block and manifest object instead of ref

This commit is contained in:
Dmitriy Ryajov 2024-02-16 08:57:36 -06:00
parent 6a0a5326a7
commit b76fe82f79
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ proc init*(_: type BlockAddress, treeCid: Cid, index: Natural): BlockAddress =
BlockAddress(leaf: true, treeCid: treeCid, index: index)
proc `$`*(b: Block): string =
# if not b.isNil:
result &= "cid: " & $b.cid
result &= "\ndata: " & string.fromBytes(b.data)