From 029936e9ba6cc082f1f77abab94a4b44996cda0a Mon Sep 17 00:00:00 2001 From: despiegk Date: Wed, 17 Sep 2025 09:10:31 +0200 Subject: [PATCH] ... --- examples/hero/herorpc/herorpc_example.vsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/hero/herorpc/herorpc_example.vsh b/examples/hero/herorpc/herorpc_example.vsh index 41b6aebb..d9317b9a 100755 --- a/examples/hero/herorpc/herorpc_example.vsh +++ b/examples/hero/herorpc/herorpc_example.vsh @@ -26,9 +26,13 @@ if http_port == 0 { } else { println(' #to test the discover function: - curl -X POST -H "Content-Type: application/json" -d \'\{"jsonrpc":"2.0","method":"rpc.discover","id":1,"params":[]\}\' http://localhost:9933/ - \' - ') + + curl -X POST -H "Content-Type: application/json" -d \'\{"jsonrpc":"2.0","method":"rpc.discover","id":1,"params":[]\}\' http://localhost:9933 + + curl -X POST -H "Content-Type: application/json" -d \'\{"jsonrpc":"2.0","method":"comment_set","params":{"comment":"Hello world!","parent":0,"author":42},"id":1\}\' http://localhost:9933 + + ' + ) } rpc.start(http_port: http_port)!