mirror of
https://github.com/logos-storage/nim-contract-abi.git
synced 2026-01-05 23:23:13 +00:00
fromBytes -> fromBytesBE
This commit is contained in:
parent
e7dba4b127
commit
b8fc2a16dc
@ -20,7 +20,7 @@ proc example*[T](_: type seq[T], len = 0..5): seq[T] =
|
||||
newSeqWith(chosenlen, T.example)
|
||||
|
||||
proc example*(T: type StUint): T =
|
||||
T.fromBytes(array[sizeof(T), byte].example)
|
||||
T.fromBytesBE(array[sizeof(T), byte].example)
|
||||
|
||||
proc example*(T: type StInt): T =
|
||||
cast[T](StUint[T.bits].example)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user