stint: bump for endians (#2903)

* stint: bump for endians

* stint fix
This commit is contained in:
Jacek Sieka 2024-12-04 12:03:31 +01:00 committed by GitHub
parent f034af422a
commit 8cb3619141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 6 deletions

View File

@ -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)),
)

View File

@ -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])
# -------

View File

@ -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

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit dc092ca39303b030b42aa405e8d5f2f44f21b457
Subproject commit 99d21e1d270a24c4a77300add05221c80247255a

2
vendor/nim-stint vendored

@ -1 +1 @@
Subproject commit 7c81df9adc80088f46a4c2b8bf2a46c26fab057c
Subproject commit ae665d6546c57b4acaf194e9a8e33ebb6aab5213