Skip to content

Commit 1a1a93b

Browse files
authored
add conversions for GetBlobsV1Response, and json marshaling test (#192)
* add conversions for GetBlobsV1Response, and json marshaling test * another fix
1 parent f3c86a6 commit 1a1a93b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

tests/test_json_marshalling.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ suite "JSON-RPC Quantity":
216216
checkRandomObject(GetPayloadV2Response)
217217
checkRandomObject(GetPayloadV2ResponseExact)
218218
checkRandomObject(GetPayloadV3Response)
219+
checkRandomObject(GetBlobsV1Response)
219220

220221
checkRandomObject(ExecutionPayload)
221222
checkRandomObject(PayloadAttributes)

web3/conversions.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ GetPayloadV2Response.useDefaultSerializationIn JrpcConv
7373
GetPayloadV2ResponseExact.useDefaultSerializationIn JrpcConv
7474
GetPayloadV3Response.useDefaultSerializationIn JrpcConv
7575
GetPayloadV4Response.useDefaultSerializationIn JrpcConv
76+
GetBlobsV1Response.useDefaultSerializationIn JrpcConv
7677
ClientVersionV1.useDefaultSerializationIn JrpcConv
7778

7879
#------------------------------------------------------------------------------

web3/engine_api.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ template getPayload*(
111111
template getBlobs*(
112112
rpcClient: RpcClient,
113113
T: type GetBlobsV1Response,
114-
blob_versioned_hashes: Bytes32):
114+
blob_versioned_hashes: seq[VersionedHash]):
115115
Future[GetBlobsV1Response] =
116116
engine_getBlobsV1(rpcClient, blob_versioned_hashes)
117117

0 commit comments

Comments
 (0)