Преглед на файлове

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

Justin Starry преди 3 години
родител
ревизия
61ded073f4
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  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