From 8cb36191415c22f3bcb408de9b791580f26fd221 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Wed, 4 Dec 2024 12:03:31 +0100 Subject: [PATCH] stint: bump for endians (#2903) * stint: bump for endians * stint fix --- hive_integration/nodocker/engine/types.nim | 3 +-- nimbus/evm/interpreter/op_handlers/oph_memory.nim | 2 +- nimbus/evm/tracer/legacy_tracer.nim | 2 +- vendor/nim-eth | 2 +- vendor/nim-stint | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hive_integration/nodocker/engine/types.nim b/hive_integration/nodocker/engine/types.nim index 37820f7ae..848fe6cdf 100644 --- a/hive_integration/nodocker/engine/types.nim +++ b/hive_integration/nodocker/engine/types.nim @@ -78,7 +78,7 @@ func toAddress*(x: UInt256): Address = const ZeroAddr* = default(Address) func toHash*(x: UInt256): Hash32 = - Hash32(x.toByteArrayBE) + Hash32(x.toBytesBE) func timestampToBeaconRoot*(timestamp: Quantity): Hash32 = # Generates a deterministic hash from the timestamp @@ -347,4 +347,3 @@ func toExecutableData*(payload: ExecutionPayload, attr: PayloadAttributes): Exec beaconRoot: attr.parentBeaconBlockRoot, versionedHashes: Opt.some(collectBlobHashes(payload.transactions)), ) - \ No newline at end of file diff --git a/nimbus/evm/interpreter/op_handlers/oph_memory.nim b/nimbus/evm/interpreter/op_handlers/oph_memory.nim index 25bc1989d..ae0364d08 100644 --- a/nimbus/evm/interpreter/op_handlers/oph_memory.nim +++ b/nimbus/evm/interpreter/op_handlers/oph_memory.nim @@ -170,7 +170,7 @@ proc mstore8Op(cpt: VmCpt): EvmResultVoid = reason = "MSTORE8: GasVeryLow + memory expansion") cpt.memory.extend(memPos, 1) - cpt.memory.write(memPos, value.toByteArrayBE[31]) + cpt.memory.write(memPos, value.toBytesBE[31]) # ------- diff --git a/nimbus/evm/tracer/legacy_tracer.nim b/nimbus/evm/tracer/legacy_tracer.nim index 72fc55796..e0fb86247 100644 --- a/nimbus/evm/tracer/legacy_tracer.nim +++ b/nimbus/evm/tracer/legacy_tracer.nim @@ -34,7 +34,7 @@ type gas: GasInt proc hash*(x: UInt256): Hash = - result = hash(x.toByteArrayBE) + result = hash(x.toBytesBE) proc rememberStorageKey(ctx: LegacyTracer, compDepth: int, key: UInt256) = ctx.storageKeys[compDepth].incl key diff --git a/vendor/nim-eth b/vendor/nim-eth index dc092ca39..99d21e1d2 160000 --- a/vendor/nim-eth +++ b/vendor/nim-eth @@ -1 +1 @@ -Subproject commit dc092ca39303b030b42aa405e8d5f2f44f21b457 +Subproject commit 99d21e1d270a24c4a77300add05221c80247255a diff --git a/vendor/nim-stint b/vendor/nim-stint index 7c81df9ad..ae665d654 160000 --- a/vendor/nim-stint +++ b/vendor/nim-stint @@ -1 +1 @@ -Subproject commit 7c81df9adc80088f46a4c2b8bf2a46c26fab057c +Subproject commit ae665d6546c57b4acaf194e9a8e33ebb6aab5213