Skip to content

Commit 059286c

Browse files
authored
fix: refresh auth wallet keyset (#1555)
* fix: update meta.status.version on auth change, triggering db write.
1 parent a84d7f7 commit 059286c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

crates/cdk/src/wallet/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,13 @@ impl Wallet {
364364
);
365365
*auth_wallet = Some(new_auth_wallet.clone());
366366

367-
self.client.set_auth_wallet(Some(new_auth_wallet)).await;
367+
self.client
368+
.set_auth_wallet(Some(new_auth_wallet.clone()))
369+
.await;
370+
371+
if let Err(e) = new_auth_wallet.refresh_keysets().await {
372+
tracing::error!("Could not fetch auth keysets: {}", e);
373+
}
368374
}
369375
}
370376
}

0 commit comments

Comments
 (0)