diff --git a/src/cli.rs b/src/cli.rs index 2b2a6e7..29e6491 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -78,6 +78,7 @@ pub trait CallRemote: crate::Context { fn call_remote( &self, method: &str, + metadata: OrdMap<&'static str, Value>, params: Value, extra: Extra, ) -> impl Future> + Send; @@ -239,12 +240,13 @@ where let full_method = handle_args .parent_method .into_iter() - .chain(handle_args.method) + .chain(handle_args.method.clone()) .collect::>(); match handle_args .context .call_remote( &full_method.join("."), + self.handler.metadata(handle_args.method), without(handle_args.raw_params.clone(), &handle_args.params.1) .map_err(invalid_params)?, handle_args.params.1,