From 6203d1c94c6227afb1b992047512e4aa7df6d46f Mon Sep 17 00:00:00 2001 From: Jon Cinque Date: Mon, 30 Nov 2020 13:04:41 +0100 Subject: [PATCH] Add `flatten` to logs_subscribe commitment Currently, commitment for `logs_subscribe` must be specified using the non-flattened form in JSON, ie `{"commitment":{"commitment":"max}}`. This brings the commitment in line with documentation. --- client/src/rpc_config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/rpc_config.rs b/client/src/rpc_config.rs index 685f1eddb6..aeb1cf9ce1 100644 --- a/client/src/rpc_config.rs +++ b/client/src/rpc_config.rs @@ -82,6 +82,7 @@ pub enum RpcTransactionLogsFilter { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct RpcTransactionLogsConfig { + #[serde(flatten)] pub commitment: Option, }