Skip to content

Commit 93c4417

Browse files
committed
1 parent 2bdffd6 commit 93c4417

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

tests/test_json_marshalling.nim

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,10 @@ proc rand[T](_: type seq[T]): seq[T] =
8989
for i in 0..<3:
9090
result[i] = rand(T)
9191

92-
proc rand(_: type array[3, seq[byte]]): array[3, seq[byte]] =
92+
proc rand(_: type seq[seq[byte]]): seq[seq[byte]] =
9393
var z = newSeq[byte](10)
9494
discard randomBytes(z)
95-
result[0] = z
96-
result[1] = z
97-
result[2] = z
95+
@[z, z, z]
9896

9997
proc rand[T](_: type SingleOrList[T]): SingleOrList[T] =
10098
SingleOrList[T](kind: slkSingle, single: rand(T))

web3/engine_api.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ createRpcSigsFromNim(RpcClient):
2727
proc engine_newPayloadV1(payload: ExecutionPayloadV1): PayloadStatusV1
2828
proc engine_newPayloadV2(payload: ExecutionPayloadV2): PayloadStatusV1
2929
proc engine_newPayloadV3(payload: ExecutionPayloadV3, expectedBlobVersionedHashes: seq[VersionedHash], parentBeaconBlockRoot: Hash32): PayloadStatusV1
30-
proc engine_newPayloadV4(payload: ExecutionPayloadV3, expectedBlobVersionedHashes: seq[VersionedHash], parentBeaconBlockRoot: Hash32, executionRequests: array[3, seq[byte]]): PayloadStatusV1
30+
proc engine_newPayloadV4(payload: ExecutionPayloadV3, expectedBlobVersionedHashes: seq[VersionedHash], parentBeaconBlockRoot: Hash32, executionRequests: seq[seq[byte]]): PayloadStatusV1
3131
proc engine_forkchoiceUpdatedV1(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Opt[PayloadAttributesV1]): ForkchoiceUpdatedResponse
3232
proc engine_forkchoiceUpdatedV2(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Opt[PayloadAttributesV2]): ForkchoiceUpdatedResponse
3333
proc engine_forkchoiceUpdatedV3(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Opt[PayloadAttributesV3]): ForkchoiceUpdatedResponse
@@ -55,7 +55,7 @@ createRpcSigsFromNim(RpcClient):
5555
proc engine_newPayloadV4(payload: ExecutionPayload,
5656
expectedBlobVersionedHashes: Opt[seq[VersionedHash]],
5757
parentBeaconBlockRoot: Opt[Hash32],
58-
executionRequests: Opt[array[3, seq[byte]]]): PayloadStatusV1
58+
executionRequests: Opt[seq[seq[byte]]]): PayloadStatusV1
5959
proc engine_forkchoiceUpdatedV2(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Opt[PayloadAttributes]): ForkchoiceUpdatedResponse
6060
proc engine_forkchoiceUpdatedV3(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Opt[PayloadAttributes]): ForkchoiceUpdatedResponse
6161

web3/engine_api_types.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,13 @@ type
215215
blobsBundle*: BlobsBundleV1
216216
shouldOverrideBuilder*: bool
217217

218-
# https://github.com/ethereum/execution-apis/blob/4140e528360fea53c34a766d86a000c6c039100e/src/engine/prague.md#response-1
218+
# https://github.com/ethereum/execution-apis/blob/7c9772f95c2472ccfc6f6128dc2e1b568284a2da/src/engine/prague.md#response-1
219219
GetPayloadV4Response* = object
220220
executionPayload*: ExecutionPayloadV3
221221
blockValue*: UInt256
222222
blobsBundle*: BlobsBundleV1
223223
shouldOverrideBuilder*: bool
224-
executionRequests*: array[3, seq[byte]]
224+
executionRequests*: seq[seq[byte]]
225225

226226
SomeGetPayloadResponse* =
227227
ExecutionPayloadV1 |
@@ -256,4 +256,4 @@ template `==`*(a, b: TypedTransaction): bool =
256256
# Backwards compatibility
257257

258258
type
259-
PayloadID* {.deprecated.} = Bytes8
259+
PayloadID* {.deprecated.} = Bytes8

web3/execution_types.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type
5454
blockValue*: Opt[UInt256]
5555
blobsBundle*: Opt[BlobsBundleV1]
5656
shouldOverrideBuilder*: Opt[bool]
57-
executionRequests*: Opt[array[3, seq[byte]]]
57+
executionRequests*: Opt[seq[seq[byte]]]
5858

5959
Version* {.pure.} = enum
6060
V1

0 commit comments

Comments
 (0)