Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit a0bb600

Browse files
committed
fixed issue wrong method for playground openrpc
1 parent 12cc9bd commit a0bb600

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/rpc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const SERVICE_FILE_ERROR: i32 = -32008;
2424
const OPENRPC_SPEC: &str = include_str!("../../openrpc.json");
2525

2626
/// RPC methods for discovery.
27-
#[rpc(server, client, namespace = "rpc")]
27+
#[rpc(server, client)]
2828
pub trait ZinitRpcApi {
2929
/// Returns the OpenRPC specification as a JSON Value.
30-
#[method(name = "discover")]
30+
#[method(name = "rpc.discover")]
3131
async fn discover(&self) -> RpcResult<Value>;
3232
}
3333

0 commit comments

Comments
 (0)