Selaa lähdekoodia

client: fill config structs with defaults to avoid compatibility issues (#1895)

Justin Starry 3 vuotta sitten
vanhempi
sitoutus
61ded073f4
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      client/src/lib.rs

+ 2 - 3
client/src/lib.rs

@@ -164,10 +164,9 @@ impl Program {
             filters: Some([vec![account_type_filter], filters].concat()),
             account_config: RpcAccountInfoConfig {
                 encoding: Some(UiAccountEncoding::Base64),
-                data_slice: None,
-                commitment: None,
+                ..RpcAccountInfoConfig::default()
             },
-            with_context: None,
+            ..RpcProgramAccountsConfig::default()
         };
         Ok(ProgramAccountsIterator {
             inner: self