mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-14 23:57:12 +00:00
Initialize the Cid using init function
This commit is contained in:
parent
add4f7dcf3
commit
e5bdbe8950
@ -56,7 +56,7 @@ proc example*(_: type StorageRequest): StorageRequest =
|
||||
maxSlotLoss: 2 # 2 slots can be freed without data considered to be lost
|
||||
),
|
||||
content: StorageContent(
|
||||
cid: "zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob".toBytes,
|
||||
cid: Cid.init("zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob").tryGet.data.buffer,
|
||||
merkleRoot: array[32, byte].example
|
||||
),
|
||||
expiry:(60 * 60).u256, # 1 hour ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user