Fix tests

This commit is contained in:
Arnaud 2025-02-14 11:01:51 +01:00
parent f924a32458
commit 1e7358c7c4
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -19,10 +19,10 @@ proc example*[T](_: type seq[T], len = 0..5): seq[T] =
newSeqWith(chosenlen, T.example)
proc example*(_: type UInt256): UInt256 =
UInt256.fromBytes(array[32, byte].example)
UInt256.fromBytesBE(array[32, byte].example)
proc example*(_: type UInt128): UInt128 =
UInt128.fromBytes(array[16, byte].example)
UInt128.fromBytesBE(array[16, byte].example)
proc example*(_: type EthAddress): EthAddress =
EthAddress(array[20, byte].example)