Restorage serialize pragma

This commit is contained in:
Arnaud 2025-01-28 11:48:19 +01:00 committed by Eric
parent 93e7b92d05
commit 3a7fb23179
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,7 @@ type
maxSlotLoss* {.serialize.}: uint64
StorageContent* = object
cid*: seq[byte]
cid* {.serialize.}: seq[byte]
merkleRoot*: array[32, byte]
Slot* = object

View File

@ -47,6 +47,8 @@ twonodessuite "Purchasing":
).get
let request = client1.getPurchase(id).get.request.get
check request.content.cid.len > 0
check request.ask.duration == 100.u256
check request.ask.pricePerBytePerSecond == 1.u256
check request.ask.proofProbability == 3.u256