From b931ffc7ad1e5159eefbdaac9cb11cb0cad5cf2b Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Thu, 10 Oct 2024 20:46:18 -0400 Subject: [PATCH] apply diffs --- rpc/types/src/json.rs | 13 +++++++++++-- test-utils/src/rpc/data/json.rs | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/rpc/types/src/json.rs b/rpc/types/src/json.rs index d3426b4..f3375fc 100644 --- a/rpc/types/src/json.rs +++ b/rpc/types/src/json.rs @@ -817,8 +817,17 @@ define_request_and_response! { hard_fork_info, cc73fe71162d564ffda8e549b79a350bca53c454 => core_rpc_server_commands_defs.h => 1958..=1995, - HardForkInfo (empty), - Request {}, + HardForkInfo, + + #[doc = serde_doc_test!( + HARD_FORK_INFO => HardForkInfo { + version: 16, + } + )] + #[derive(Copy)] + Request { + version: u8, + }, #[doc = serde_doc_test!( HARD_FORK_INFO_RESPONSE => HardForkInfoResponse { diff --git a/test-utils/src/rpc/data/json.rs b/test-utils/src/rpc/data/json.rs index a05af67..3d46306 100644 --- a/test-utils/src/rpc/data/json.rs +++ b/test-utils/src/rpc/data/json.rs @@ -608,7 +608,10 @@ define_request_and_response! { r#"{ "jsonrpc": "2.0", "id": "0", - "method": "hard_fork_info" + "method": "hard_fork_info", + "params": { + "version": 16 + } }"#; Response = r#"{