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:
parent
e81c2c826c
commit
6203d1c94c
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue