parent
f034af422a
commit
8cb3619141
|
@ -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)),
|
||||
)
|
||||
|
|
@ -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])
|
||||
|
||||
|
||||
# -------
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit dc092ca39303b030b42aa405e8d5f2f44f21b457
|
||||
Subproject commit 99d21e1d270a24c4a77300add05221c80247255a
|
|
@ -1 +1 @@
|
|||
Subproject commit 7c81df9adc80088f46a4c2b8bf2a46c26fab057c
|
||||
Subproject commit ae665d6546c57b4acaf194e9a8e33ebb6aab5213
|
Loading…
Reference in New Issue