From 10643be8bbecef132a8c8f534b4f86876c4c2a7d Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 21 Jun 2021 13:26:45 -0400 Subject: [PATCH] Use `getKey` to actually retrieve key. (#332) `hasKey` just validates it's available --- src/program.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/program.ts b/src/program.ts index f3b0b63c1b..77c40a10fb 100644 --- a/src/program.ts +++ b/src/program.ts @@ -418,6 +418,8 @@ export class Program extends BaseProgram { } else { this.processResponse(Response.error('Vault is locked.'), true); } + } else if (!this.main.cryptoService.hasKeyInMemory()) { + await this.main.cryptoService.getKey(); } }