make block and manifest object instead of ref
This commit is contained in:
parent
6a0a5326a7
commit
b76fe82f79
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue