Initialize the Cid using init function

This commit is contained in:
Arnaud 2025-01-16 17:55:53 +01:00
parent add4f7dcf3
commit e5bdbe8950
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -56,7 +56,7 @@ proc example*(_: type StorageRequest): StorageRequest =
maxSlotLoss: 2 # 2 slots can be freed without data considered to be lost maxSlotLoss: 2 # 2 slots can be freed without data considered to be lost
), ),
content: StorageContent( content: StorageContent(
cid: "zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob".toBytes, cid: Cid.init("zb2rhheVmk3bLks5MgzTqyznLu1zqGH5jrfTA1eAZXrjx7Vob").tryGet.data.buffer,
merkleRoot: array[32, byte].example merkleRoot: array[32, byte].example
), ),
expiry:(60 * 60).u256, # 1 hour , expiry:(60 * 60).u256, # 1 hour ,