File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import pkg/poseidon2
1616
1717import ../ units
1818export units
19+ export curves # workaround for "undeclared identifier: 'getCurveOrder'" from constantine
1920
2021const
2122 BlockCodec * = multiCodec (" raw" )
3435proc `==` * (a, b: VerificationHash ): bool =
3536 a.toHex () == b.toHex ()
3637
37- # not working, undeclared identifier 'getCurveOrder'
38- # proc fromInt*(T: type VerificationHash, value: SomeInteger | SomeUnsignedInt): VerificationHash =
39- # toF(value)
38+ proc fromInt * (T: type VerificationHash , value: SomeInteger | SomeUnsignedInt ): VerificationHash =
39+ toF (value)
4040
4141proc encode * (a: VerificationHash ): string =
4242 a.toHex ()
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ import std/sequtils
33import pkg/ chronos
44import pkg/ questionable/ results
55import pkg/ asynctest
6- import pkg/ stew/ byteutils
7- import pkg/ poseidon2
86import pkg/ codex/ chunker
97import pkg/ codex/ blocktype as bt
108import pkg/ codex/ manifest
@@ -61,10 +59,8 @@ checksuite "Manifest":
6159
6260 var manifest = Manifest .new (
6361 manifest = protectedManifest,
64- # datasetRoot = VerificationHash.fromInt(12),
65- # slotRoots = @[VerificationHash.fromInt(23), VerificationHash.fromInt(34)]
66- datasetRoot = toF (12 ),
67- slotRoots = @ [toF (23 ), toF (34 )]
62+ datasetRoot = VerificationHash .fromInt (12 ),
63+ slotRoots = @ [VerificationHash .fromInt (23 ), VerificationHash .fromInt (34 )]
6864 ).tryGet ()
6965
7066 let
You can’t perform that action at this time.
0 commit comments