Skip to content

Commit

Permalink
add conversions for GetBlobsV1Response, and json marshaling test (#192)
Browse files Browse the repository at this point in the history
* add conversions for GetBlobsV1Response, and json marshaling test

* another fix
  • Loading branch information
agnxsh authored Feb 10, 2025
1 parent f3c86a6 commit 1a1a93b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/test_json_marshalling.nim
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ suite "JSON-RPC Quantity":
checkRandomObject(GetPayloadV2Response)
checkRandomObject(GetPayloadV2ResponseExact)
checkRandomObject(GetPayloadV3Response)
checkRandomObject(GetBlobsV1Response)

checkRandomObject(ExecutionPayload)
checkRandomObject(PayloadAttributes)
Expand Down
1 change: 1 addition & 0 deletions web3/conversions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ GetPayloadV2Response.useDefaultSerializationIn JrpcConv
GetPayloadV2ResponseExact.useDefaultSerializationIn JrpcConv
GetPayloadV3Response.useDefaultSerializationIn JrpcConv
GetPayloadV4Response.useDefaultSerializationIn JrpcConv
GetBlobsV1Response.useDefaultSerializationIn JrpcConv
ClientVersionV1.useDefaultSerializationIn JrpcConv

#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion web3/engine_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ template getPayload*(
template getBlobs*(
rpcClient: RpcClient,
T: type GetBlobsV1Response,
blob_versioned_hashes: Bytes32):
blob_versioned_hashes: seq[VersionedHash]):
Future[GetBlobsV1Response] =
engine_getBlobsV1(rpcClient, blob_versioned_hashes)

Expand Down

0 comments on commit 1a1a93b

Please sign in to comment.