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.
This commit is contained in:
Jon Cinque 2020-11-30 13:04:41 +01:00 committed by Michael Vines
parent e81c2c826c
commit 6203d1c94c
1 changed files with 1 additions and 0 deletions

View File

@ -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<CommitmentConfig>,
}