Explorar o código

client: Fix automatic keypair generation.

parazyd %!s(int64=4) %!d(string=hai) anos
pai
achega
0b7bd857de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/client.rs

+ 1 - 1
src/client.rs

@@ -73,7 +73,7 @@ impl Client {
         wallet.init_db().await?;
 
         // Generate a new keypair if we don't have any.
-        if wallet.get_keypairs().await?.is_empty() {
+        if wallet.get_keypairs().await.is_err() {
             wallet.key_gen().await?;
         }