From 15d1612ced53f932a5662fd33d091b54a6696217 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Mon, 16 Oct 2023 13:28:16 +0800 Subject: [PATCH 1/4] Remove `"error": null from IntegrationTestImpl rpc doc --- rpc/src/module/test.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rpc/src/module/test.rs b/rpc/src/module/test.rs index 2f886970b5..7193186972 100644 --- a/rpc/src/module/test.rs +++ b/rpc/src/module/test.rs @@ -101,7 +101,6 @@ pub trait IntegrationTestRpc { /// "id": 42, /// "jsonrpc": "2.0", /// "result": "0xa5f5c85987a15de25661e5a214f2c1449cd803f071acc7999820f25246471f40", - /// "error": null /// } /// ``` #[rpc(name = "process_block_without_verify")] @@ -164,7 +163,6 @@ pub trait IntegrationTestRpc { /// "id": 42, /// "jsonrpc": "2.0", /// "result": "0x60dd3fa0e81db3ee3ad41cf4ab956eae7e89eb71cd935101c26c4d0652db3029", - /// "error": null /// } /// ``` #[rpc(name = "generate_block")] @@ -217,7 +215,6 @@ pub trait IntegrationTestRpc { /// "id": 42, /// "jsonrpc": "2.0", /// "result": "0xa0001000003", - /// "error": null /// } /// ``` #[rpc(name = "generate_epochs")] @@ -287,7 +284,6 @@ pub trait IntegrationTestRpc { /// "id": 42, /// "jsonrpc": "2.0", /// "result": "0xa0ef4eb5f4ceeb08a4c8524d84c5da95dce2f608e0ca2ec8091191b0f330c6e3", - /// "error": null /// } /// ``` #[rpc(name = "notify_transaction")] @@ -393,7 +389,6 @@ pub trait IntegrationTestRpc { /// "id": 42, /// "jsonrpc": "2.0", /// "result": "0x899541646ae412a99fdbefc081e1a782605a7815998a096af16e51d4df352c75", - /// "error": null /// } /// ``` #[rpc(name = "generate_block_with_template")] @@ -497,7 +492,6 @@ pub trait IntegrationTestRpc { /// "id": 42, /// "jsonrpc": "2.0", /// "result": "0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000", - /// "error": null /// } /// ``` #[rpc(name = "calculate_dao_field")] From defb845b14c8e7352a47ee16a487766cca19ccf6 Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Mon, 16 Oct 2023 13:28:50 +0800 Subject: [PATCH 2/4] Execute `make gen-rpc-doc` --- rpc/README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rpc/README.md b/rpc/README.md index 8d76e4b672..fdd3f8172c 100644 --- a/rpc/README.md +++ b/rpc/README.md @@ -3134,7 +3134,6 @@ Response "id": 42, "jsonrpc": "2.0", "result": "0xa5f5c85987a15de25661e5a214f2c1449cd803f071acc7999820f25246471f40", - "error": null } ``` @@ -3210,7 +3209,6 @@ Response "id": 42, "jsonrpc": "2.0", "result": "0x60dd3fa0e81db3ee3ad41cf4ab956eae7e89eb71cd935101c26c4d0652db3029", - "error": null } ``` @@ -3268,7 +3266,6 @@ Response "id": 42, "jsonrpc": "2.0", "result": "0xa0001000003", - "error": null } ``` @@ -3342,7 +3339,6 @@ Response "id": 42, "jsonrpc": "2.0", "result": "0xa0ef4eb5f4ceeb08a4c8524d84c5da95dce2f608e0ca2ec8091191b0f330c6e3", - "error": null } ``` @@ -3455,7 +3451,6 @@ Response "id": 42, "jsonrpc": "2.0", "result": "0x899541646ae412a99fdbefc081e1a782605a7815998a096af16e51d4df352c75", - "error": null } ``` @@ -3566,7 +3561,6 @@ Response "id": 42, "jsonrpc": "2.0", "result": "0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000", - "error": null } ``` From fcd9b3efcad69745f63093adcbc661996a3e0e4a Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Mon, 16 Oct 2023 13:39:53 +0800 Subject: [PATCH 3/4] Remove tail `,` char --- rpc/src/module/test.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpc/src/module/test.rs b/rpc/src/module/test.rs index 7193186972..e9c563553f 100644 --- a/rpc/src/module/test.rs +++ b/rpc/src/module/test.rs @@ -100,7 +100,7 @@ pub trait IntegrationTestRpc { /// { /// "id": 42, /// "jsonrpc": "2.0", - /// "result": "0xa5f5c85987a15de25661e5a214f2c1449cd803f071acc7999820f25246471f40", + /// "result": "0xa5f5c85987a15de25661e5a214f2c1449cd803f071acc7999820f25246471f40" /// } /// ``` #[rpc(name = "process_block_without_verify")] @@ -162,7 +162,7 @@ pub trait IntegrationTestRpc { /// { /// "id": 42, /// "jsonrpc": "2.0", - /// "result": "0x60dd3fa0e81db3ee3ad41cf4ab956eae7e89eb71cd935101c26c4d0652db3029", + /// "result": "0x60dd3fa0e81db3ee3ad41cf4ab956eae7e89eb71cd935101c26c4d0652db3029" /// } /// ``` #[rpc(name = "generate_block")] @@ -214,7 +214,7 @@ pub trait IntegrationTestRpc { /// { /// "id": 42, /// "jsonrpc": "2.0", - /// "result": "0xa0001000003", + /// "result": "0xa0001000003" /// } /// ``` #[rpc(name = "generate_epochs")] @@ -283,7 +283,7 @@ pub trait IntegrationTestRpc { /// { /// "id": 42, /// "jsonrpc": "2.0", - /// "result": "0xa0ef4eb5f4ceeb08a4c8524d84c5da95dce2f608e0ca2ec8091191b0f330c6e3", + /// "result": "0xa0ef4eb5f4ceeb08a4c8524d84c5da95dce2f608e0ca2ec8091191b0f330c6e3" /// } /// ``` #[rpc(name = "notify_transaction")] @@ -388,7 +388,7 @@ pub trait IntegrationTestRpc { /// { /// "id": 42, /// "jsonrpc": "2.0", - /// "result": "0x899541646ae412a99fdbefc081e1a782605a7815998a096af16e51d4df352c75", + /// "result": "0x899541646ae412a99fdbefc081e1a782605a7815998a096af16e51d4df352c75" /// } /// ``` #[rpc(name = "generate_block_with_template")] @@ -491,7 +491,7 @@ pub trait IntegrationTestRpc { /// { /// "id": 42, /// "jsonrpc": "2.0", - /// "result": "0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000", + /// "result": "0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000" /// } /// ``` #[rpc(name = "calculate_dao_field")] From 4a657189e57821957225d9b50bd13ed0f4d30f3d Mon Sep 17 00:00:00 2001 From: Eval EXEC Date: Mon, 16 Oct 2023 13:44:15 +0800 Subject: [PATCH 4/4] Execute `make gen-rpc-doc` --- rpc/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpc/README.md b/rpc/README.md index fdd3f8172c..fe16348215 100644 --- a/rpc/README.md +++ b/rpc/README.md @@ -3133,7 +3133,7 @@ Response { "id": 42, "jsonrpc": "2.0", - "result": "0xa5f5c85987a15de25661e5a214f2c1449cd803f071acc7999820f25246471f40", + "result": "0xa5f5c85987a15de25661e5a214f2c1449cd803f071acc7999820f25246471f40" } ``` @@ -3208,7 +3208,7 @@ Response { "id": 42, "jsonrpc": "2.0", - "result": "0x60dd3fa0e81db3ee3ad41cf4ab956eae7e89eb71cd935101c26c4d0652db3029", + "result": "0x60dd3fa0e81db3ee3ad41cf4ab956eae7e89eb71cd935101c26c4d0652db3029" } ``` @@ -3265,7 +3265,7 @@ Response { "id": 42, "jsonrpc": "2.0", - "result": "0xa0001000003", + "result": "0xa0001000003" } ``` @@ -3338,7 +3338,7 @@ Response { "id": 42, "jsonrpc": "2.0", - "result": "0xa0ef4eb5f4ceeb08a4c8524d84c5da95dce2f608e0ca2ec8091191b0f330c6e3", + "result": "0xa0ef4eb5f4ceeb08a4c8524d84c5da95dce2f608e0ca2ec8091191b0f330c6e3" } ``` @@ -3450,7 +3450,7 @@ Response { "id": 42, "jsonrpc": "2.0", - "result": "0x899541646ae412a99fdbefc081e1a782605a7815998a096af16e51d4df352c75", + "result": "0x899541646ae412a99fdbefc081e1a782605a7815998a096af16e51d4df352c75" } ``` @@ -3560,7 +3560,7 @@ Response { "id": 42, "jsonrpc": "2.0", - "result": "0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000", + "result": "0xd495a106684401001e47c0ae1d5930009449d26e32380000000721efd0030000" } ```