Skip to content

Commit 6f5ba81

Browse files
authored
stint: bump for endians (#183)
1 parent 2d8419d commit 6f5ba81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web3/encoding.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import
1212
stint, ./eth_api_types, stew/[assign2, byteutils]
1313

1414
func encode*[bits: static[int]](x: StUint[bits]): seq[byte] =
15-
@(x.toByteArrayBE())
15+
@(x.toBytesBE())
1616

1717
func encode*[bits: static[int]](x: StInt[bits]): seq[byte] =
18-
@(x.toByteArrayBE())
18+
@(x.toBytesBE())
1919

2020
func decode*(input: openArray[byte], baseOffset, offset: int, to: var StUint): int =
2121
const meaningfulLen = to.bits div 8

0 commit comments

Comments
 (0)