mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 08:23:07 +00:00
Restorage serialize pragma
This commit is contained in:
parent
93e7b92d05
commit
3a7fb23179
@ -29,7 +29,7 @@ type
|
||||
maxSlotLoss* {.serialize.}: uint64
|
||||
|
||||
StorageContent* = object
|
||||
cid*: seq[byte]
|
||||
cid* {.serialize.}: seq[byte]
|
||||
merkleRoot*: array[32, byte]
|
||||
|
||||
Slot* = object
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user