mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-12 12:56:58 +00:00
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…
x
Reference in New Issue
Block a user