瀏覽代碼

fix: refresh auth wallet keyset (#1555)

* fix: update meta.status.version on auth change, triggering db write.
asmo 6 天之前
父節點
當前提交
059286c3ae
共有 1 個文件被更改,包括 7 次插入1 次删除
  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);
+                    }
                 }
             }
         }