Explorar el Código

fix: refresh auth wallet keyset (#1555)

* fix: update meta.status.version on auth change, triggering db write.
asmo hace 6 días
padre
commit
059286c3ae
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      crates/cdk/src/wallet/mod.rs

+ 7 - 1
crates/cdk/src/wallet/mod.rs

@@ -364,7 +364,13 @@ impl Wallet {
                     );
                     *auth_wallet = Some(new_auth_wallet.clone());
 
-                    self.client.set_auth_wallet(Some(new_auth_wallet)).await;
+                    self.client
+                        .set_auth_wallet(Some(new_auth_wallet.clone()))
+                        .await;
+
+                    if let Err(e) = new_auth_wallet.refresh_keysets().await {
+                        tracing::error!("Could not fetch auth keysets: {}", e);
+                    }
                 }
             }
         }