From 6f5ba8199b41cf1779a93b0e99d13795202aefcc Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 17 Dec 2024 03:35:21 +0100 Subject: [PATCH] stint: bump for endians (#183) --- web3/encoding.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3/encoding.nim b/web3/encoding.nim index 2b0876b..89e07e9 100644 --- a/web3/encoding.nim +++ b/web3/encoding.nim @@ -12,10 +12,10 @@ import stint, ./eth_api_types, stew/[assign2, byteutils] func encode*[bits: static[int]](x: StUint[bits]): seq[byte] = - @(x.toByteArrayBE()) + @(x.toBytesBE()) func encode*[bits: static[int]](x: StInt[bits]): seq[byte] = - @(x.toByteArrayBE()) + @(x.toBytesBE()) func decode*(input: openArray[byte], baseOffset, offset: int, to: var StUint): int = const meaningfulLen = to.bits div 8