mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 00:13:08 +00:00
Initialize the Cid using init function
This commit is contained in:
parent
eaf8b5ad32
commit
93e7b92d05
@ -57,8 +57,8 @@ proc example*(_: type StorageRequest): StorageRequest =
|
||||
maxSlotLoss: 2, # 2 slots can be freed without data considered to be lost
|
||||
),
|
||||
content: StorageContent(
|
||||
cid: "zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob".toBytes,
|
||||
merkleRoot: array[32, byte].example,
|
||||
cid: Cid.init("zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob").tryGet.data.buffer,
|
||||
merkleRoot: array[32, byte].example
|
||||
),
|
||||
expiry: (60 * 60).u256, # 1 hour ,
|
||||
nonce: Nonce.example,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user