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:
committed by
Michael Vines
parent
e81c2c826c
commit
6203d1c94c
@ -82,6 +82,7 @@ pub enum RpcTransactionLogsFilter {
|
|||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct RpcTransactionLogsConfig {
|
pub struct RpcTransactionLogsConfig {
|
||||||
|
#[serde(flatten)]
|
||||||
pub commitment: Option<CommitmentConfig>,
|
pub commitment: Option<CommitmentConfig>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user